Skip to content

Commit e8413ba

Browse files
authored
Merge pull request #8229 from slavapestov/another-protocol-typealias-crasher-yay
Add another crasher with protocol typealiases
2 parents 7e141f6 + 47a0cb1 commit e8413ba

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// RUN: not --crash %target-swift-frontend -swift-version 4 %s -typecheck -o /dev/null
2+
3+
// This should actually type check successfully.
4+
5+
protocol P {
6+
associatedtype T
7+
}
8+
9+
protocol Q1 : P {
10+
typealias T = Int
11+
12+
func f(_: T)
13+
}
14+
15+
protocol Q2 : P {
16+
associatedtype T where T == Int
17+
18+
func f(_: T)
19+
}

0 commit comments

Comments
 (0)