Skip to content

Commit 0a3f666

Browse files
committed
[IDE] NFC: Add a test-case for a fixed SourceKit crasher
Resolves: rdar://problem/41331096
1 parent d082e15 commit 0a3f666

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s
2+
3+
enum E1 {
4+
case X
5+
case Y
6+
}
7+
enum E2 {
8+
case A
9+
case B
10+
case C
11+
}
12+
13+
func foo() -> ([E1], [E2]) {
14+
return ([.X], [.A, .B, .#^A^#])
15+
}

0 commit comments

Comments
 (0)