mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
I could never remember the command to run batch code completion tests. Add a lit substitution for it.
19 lines
330 B
Swift
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#];
|