You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let _:GenericClass<Int>.TA=GenericClass.TA(a:4.0, b:1) // expected-error {{cannot convert value of type 'Double' to expected argument type 'Int'}}
302
288
let _:GenericClass<Int>.TA=GenericClass.TA(a:1, b:4.0)
303
289
304
-
let _:GenericClass<Int>.TA=GenericClass.TA<Float>(a:4.0, b:1) // expected-error {{cannot assign value of type 'MyType<Float, Int>' to type 'MyType<Int, Int>'}}
305
-
let _:GenericClass<Int>.TA=GenericClass.TA<Float>(a:1, b:4.0) // expected-error {{cannot assign value of type 'MyType<Float, Double>' to type 'MyType<Int, Double>'}}
290
+
let _:GenericClass<Int>.TA=GenericClass.TA<Float>(a:4.0, b:1) // expected-error {{cannot convert value of type 'Double' to expected argument type 'Int'}}
291
+
let _:GenericClass<Int>.TA=GenericClass.TA<Float>(a:1, b:4.0)
306
292
307
293
let _:GenericClass<Int>.TA= GenericClass<Int>.TA(a:4.0, b:1) // expected-error {{cannot convert value of type 'Double' to expected argument type 'Int'}}
308
294
let _:GenericClass<Int>.TA= GenericClass<Int>.TA(a:1, b:4.0)
let _:GenericClass<Int>.TA<Float>=GenericClass.TA(a:4.0, b:1) // expected-error {{cannot convert value of type 'Double' to expected argument type 'Int'}}
314
300
let _:GenericClass<Int>.TA<Float>=GenericClass.TA(a:1, b:4.0)
315
301
316
-
let _:GenericClass<Int>.TA<Float>=GenericClass.TA<Float>(a:4.0, b:1) // expected-error {{cannot assign value of type 'MyType<Float, Float>' to type 'GenericClass<Int>.TA<Float>' (aka 'MyType<Int, Float>')}}
317
-
let _:GenericClass<Int>.TA<Float>=GenericClass.TA<Float>(a:1, b:4.0) // expected-error {{cannot assign value of type 'MyType<Float, Float>' to type 'GenericClass<Int>.TA<Float>' (aka 'MyType<Int, Float>')}}
302
+
let _:GenericClass<Int>.TA<Float>=GenericClass.TA<Float>(a:4.0, b:1) // expected-error {{cannot convert value of type 'Double' to expected argument type 'Int'}}
303
+
let _:GenericClass<Int>.TA<Float>=GenericClass.TA<Float>(a:1, b:4.0)
318
304
319
305
let _:GenericClass<Int>.TA<Float>= GenericClass<Int>.TA(a:4.0, b:1) // expected-error {{cannot convert value of type 'Double' to expected argument type 'Int'}}
320
306
let _:GenericClass<Int>.TA<Float>= GenericClass<Int>.TA(a:1, b:4.0)
0 commit comments