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 _:Int=Pair().first // expected-error {{generic parameter 'T' could not be inferred}} expected-note {{explicitly specify the generic arguments to fix this issue}} {{20-20=<Any, Any>}}
367
+
let _:Int=Pair().first // expected-error {{generic parameter 'U' could not be inferred}} expected-note {{explicitly specify the generic arguments to fix this issue}} {{20-20=<Any, Any>}}
368
368
let _:Int=Pair().second // expected-error {{generic parameter 'T' could not be inferred}} expected-note {{explicitly specify the generic arguments to fix this issue}} {{20-20=<Any, Any>}}
369
369
}
370
370
@@ -622,7 +622,7 @@ func rdar40537858() {
622
622
let _:E=.bar([s]) // expected-error {{enum case 'bar' requires that 'S' conform to 'P'}}
623
623
}
624
624
625
-
// SR-8934
625
+
// https://bugs.swift.org/browse/SR-8934
626
626
structBottleLayout{
627
627
letcount:Int
628
628
}
@@ -631,3 +631,10 @@ let layout = BottleLayout(count:1)
631
631
letix= arr.firstIndex(of:layout) // expected-error {{argument type 'BottleLayout' does not conform to expected type 'Equatable'}}
632
632
633
633
let _:()->UInt8={.init("a"asUnicode.Scalar)} // expected-error {{initializer 'init(_:)' requires that 'Unicode.Scalar' conform to 'BinaryInteger'}}
0 commit comments