Skip to content

Commit 1ce8cde

Browse files
committed
[Test] Adds a test case
1 parent 7a63586 commit 1ce8cde

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// RUN: not %target-swift-frontend -typecheck %s
2+
3+
protocol P {}
4+
struct S<T> {}
5+
extension S : P where T : P {}
6+
7+
func foo(_ fn: (S<String>) -> Void) {}
8+
func bar(_ fn: (P) -> Void) {
9+
foo(fn)
10+
}

0 commit comments

Comments
 (0)