Skip to content

Commit b7af52f

Browse files
committed
Add regression test for long-since fixed crasher
1 parent f633c16 commit b7af52f

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

test/Generics/issue-55060.swift

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// RUN: %target-typecheck-verify-swift
2+
3+
protocol E {}
4+
5+
protocol P {
6+
associatedtype V: E
7+
}
8+
9+
protocol Q {
10+
associatedtype G: P
11+
}
12+
13+
protocol R {
14+
associatedtype G
15+
associatedtype M: Q where M.G == G
16+
}
17+
18+
struct A<I: E>: P {
19+
typealias V = I
20+
func f<N: R>(_: N) where N.G == Self {}
21+
}

0 commit comments

Comments
 (0)