Skip to content

Commit a075c30

Browse files
authored
Merge pull request #12716 from slavapestov/new-crasher
2 parents ad24e0f + ccfa6e4 commit a075c30

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// RUN: not --crash %target-swift-frontend -typecheck %s
2+
// REQUIRES: asserts
3+
4+
protocol A {
5+
associatedtype B
6+
}
7+
8+
extension A {
9+
func foo() {
10+
(B.self as! Sequence.Type).Element
11+
}
12+
}

0 commit comments

Comments
 (0)