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
// expected-note@-3 {{'Content' declared as parameter to type 'Test'}}
884
+
vardata:[Data]
885
+
varfilter:(Data.Element)->Content
886
+
}
887
+
888
+
func test(data:[Int]?){
889
+
Test(data?.filter)
890
+
// expected-error@-1 {{generic struct 'Test' requires that '(((Int) throws -> Bool) throws -> [Int])?' conform to 'RandomAccessCollection'}}
891
+
// expected-error@-2 {{generic parameter 'Content' could not be inferred}} expected-note@-2 {{explicitly specify the generic arguments to fix this issue}}
892
+
// expected-error@-3 {{cannot convert value of type '(((Int) throws -> Bool) throws -> [Int])?' to expected argument type '[(((Int) throws -> Bool) throws -> [Int])?]'}}
893
+
// expected-error@-4 {{missing argument for parameter 'filter' in call}}
0 commit comments