mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
18 lines
424 B
Swift
18 lines
424 B
Swift
// RUN: %swift-ide-test -code-completion -source-filename %s -code-completion-token=COMPLETE | %FileCheck %s
|
||
|
||
// https://github.com/apple/swift/issues/56811
|
||
|
||
public enum Endpoint {
|
||
case movieDetail
|
||
|
||
|
||
func path() -> String {
|
||
switch self {
|
||
case .movieDetail:
|
||
let myInt: Int = 2
|
||
return "\(#^COMPLETE^#)"
|
||
}
|
||
}
|
||
}
|
||
// CHECK: Decl[LocalVar]/Local/TypeRelation[Convertible]: myInt[#Int#];
|