Skip to content

Commit fec93f9

Browse files
committed
Add reduced, crashing test case for rdar://problem/39130543.
1 parent 80defe5 commit fec93f9

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// RUN: not --crash %target-swift-frontend %s -emit-ir
2+
3+
protocol P20 { }
4+
5+
protocol P21b {
6+
associatedtype T
7+
8+
func foo(_: (T?) -> Void)
9+
}
10+
11+
protocol P21a {
12+
associatedtype T
13+
14+
func bar(_: ([T]) -> Void)
15+
}
16+
17+
extension P21b where Self: P21a, T: P20 {
18+
func foo(_: (T?) -> Void) {
19+
bar { _ in }
20+
}
21+
}

0 commit comments

Comments
 (0)