blob: 007bad710590550c5121d52e0b1ec33483757a29 [file] [log] [blame]
// RUN: not %target-swift-frontend -typecheck %s
protocol P {}
struct S<T> {}
extension S : P where T : P {}
func foo(_ fn: (S<String>) -> Void) {}
func bar(_ fn: (P) -> Void) {
foo(fn)
}