Skip to content

Commit 2d929fd

Browse files
committed
[test] Add test case for fixed issue
1 parent 76f2351 commit 2d929fd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/IDE/issue-66926.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// RUN: %batch-code-completion
2+
3+
func test(_ value: Int?) {
4+
#if true
5+
switch value {
6+
case .some(let underlyingValue) where #^COMPLETE^#underlyingValue is Int:
7+
break
8+
}
9+
#endif
10+
}
11+
12+
// COMPLETE: Decl[LocalVar]/Local: underlyingValue[#Int#]; name=underlyingValue

0 commit comments

Comments
 (0)