[test] Add test case for fixed issue

This commit is contained in:
Hamish Knight
2025-07-01 13:06:08 +01:00
parent 76f235154d
commit 2d929fd37d

View File

@@ -0,0 +1,12 @@
// RUN: %batch-code-completion
func test(_ value: Int?) {
#if true
switch value {
case .some(let underlyingValue) where #^COMPLETE^#underlyingValue is Int:
break
}
#endif
}
// COMPLETE: Decl[LocalVar]/Local: underlyingValue[#Int#]; name=underlyingValue