Files
swift-mirror/validation-test/compiler_crashers_2_fixed/issue-53382.swift

13 lines
240 B
Swift

// RUN: not %target-swift-frontend -typecheck %s
// https://github.com/apple/swift/issues/53382
protocol P {}
struct S<T> {}
extension S : P where T : P {}
func foo(_ fn: (S<String>) -> Void) {}
func bar(_ fn: (P) -> Void) {
foo(fn)
}