mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
13 lines
265 B
Swift
13 lines
265 B
Swift
// 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
|