Files
swift-mirror/test/IDE/complete_issue-56811.swift
2023-07-07 19:51:01 +02:00

18 lines
424 B
Swift
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// 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#];