mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[test] Add test case for fixed issue
This commit is contained in:
12
test/IDE/issue-66926.swift
Normal file
12
test/IDE/issue-66926.swift
Normal 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
|
||||
Reference in New Issue
Block a user