// RUN: %target-parse-verify-swift struct MyCollection { // expected-note {{'Element' declared as parameter to type 'MyCollection'}} func map(transform: (Element) -> T) -> MyCollection { fatalError("implement") } } MyCollection.map // expected-error{{generic parameter 'Element' could not be inferred}} let a = MyCollection() a.map // expected-error{{generic parameter 'T' could not be inferred}}