Files
swift-mirror/test/IDE/complete_issue-56810.swift
Alex Hoppen 32eff21977 [IDE] Remove "Begin completions" and "End completions" from test cases
These test lines weren't actually providing any value and were annoying to write. Let's jut remove them.
2023-03-22 09:07:17 -07:00

19 lines
425 B
Swift

// RUN: %target-swift-ide-test -batch-code-completion -source-filename %s -filecheck %raw-FileCheck -completion-output-dir %t
// https://github.com/apple/swift/issues/56810
struct Foo {
let bar: Bool
}
func foo(_: (Foo) -> Void) {}
foo { x in
switch x.#^COMPLETE_WITHOUT_BRACE?check=CHECK^#
}
foo { x in
switch x.#^COMPLETE_WITH_BRACES?check=CHECK^# {}
}
// CHECK: Decl[InstanceVar]/CurrNominal: bar[#Bool#];