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
f11(3, f4) // expected-error {{global function 'f11' requires that 'Int' conform to 'P2'}}
1263
1263
1264
1264
letf12:(Int)->Void={ _ in} // expected-note {{candidate '(Int) -> Void' requires 1 argument, but 2 were provided}}
1265
-
func f12<T :P2>(_ n:T, _ f:@escaping(T)->T){} // expected-note {{candidate requires that 'Int' conform to 'P2' (requirement specified as 'T' == 'P2')}}
1265
+
func f12<T :P2>(_ n:T, _ f:@escaping(T)->T){} // expected-note {{candidate requires that 'Int' conform to 'P2' (requirement specified as 'T' : 'P2')}}
1266
1266
f12(3, f4)// expected-error {{no exact matches in call to global function 'f12'}}
return arguments.reduce(0,+) // expected-error {{cannot convert value of type 'Int' to expected argument type 'String'}}
247
247
}
248
248
}
249
+
250
+
// rdar://79672230 - crash due to unsatisfied `: AnyObject` requirement
251
+
func rdar79672230(){
252
+
structMyType{}
253
+
254
+
func test(_ representation:MyType)->Bool{} // expected-note {{found candidate with type 'MyType'}}
255
+
func test<T>(_ object:inoutT)->Boolwhere T :AnyObject{} // expected-note {{candidate requires that 'MyType' conform to 'AnyObject' (requirement specified as 'T' : 'AnyObject')}}
256
+
257
+
vart:MyType=MyType()
258
+
test(&t) // expected-error {{no exact matches in call to local function 'test'}}
0 commit comments