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
structMyCollection<Element>{ // expected-note {{'Element' declared as parameter to type 'MyCollection'}}
func map<T>(_ transform:(Element)->T)->MyCollection<T>{ // expected-note 2 {{in call to function 'map'}}
fatalError("implement")
}
}
MyCollection.map // expected-error{{generic parameter 'Element' could not be inferred}} expected-note {{explicitly specify the generic arguments to fix this issue}} {{13-13=<Any>}}
// expected-error@-1 {{generic parameter 'T' could not be inferred}}
leta=MyCollection<Int>()
a.map // expected-error{{generic parameter 'T' could not be inferred}}