blob: 732ecf7fd55b9469f804b692ccef2fe0cf5a623a [file] [log] [blame]
// RUN: not %target-swift-frontend -typecheck %s
protocol P {
associatedtype A
}
func foo<T: P>(_: () throws -> T) -> T.A? {
fatalError()
}
_ = foo() { fatalError() } & nil