Skip to content

Commit 852b56f

Browse files
authored
Merge pull request #82681 from hamishknight/add-test
[test] Add test case for fixed issue
2 parents 98b1494 + 2d929fd commit 852b56f

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)