Files
swift-mirror/test/IDE/complete_issue-56810.swift
Alex Hoppen a5a17aa955 [tests] Add a %batch-code-completion lit substitution
I could never remember the command to run batch code completion tests. Add a lit substitution for it.
2023-09-18 13:57:49 -07:00

19 lines
330 B
Swift

// RUN: %batch-code-completion
// 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#];