blob: 1ffa3d7ecfec1f46f7861b9b2a0eb981e7b6164c [file] [log] [blame]
// RUN: %target-typecheck-verify-swift
protocol P {
associatedtype A
}
func foo<T: P>(_: () throws -> T) -> T.A? { // expected-note {{in call to function 'foo'}}
fatalError()
}
let _ = foo() {fatalError()} & nil // expected-error {{generic parameter 'T' could not be inferred}}