mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
13 lines
240 B
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)
|
|
}
|