Skip to content

Commit ccfa6e4

Browse files
committed
Add a crasher
1 parent 0d98c4c commit ccfa6e4

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)