mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
I could never remember the command to run batch code completion tests. Add a lit substitution for it.
24 lines
421 B
Swift
24 lines
421 B
Swift
// RUN: %batch-code-completion
|
|
|
|
struct MyStruct {
|
|
func takeAnotherClosure(_ y: () -> Void) {}
|
|
}
|
|
|
|
func takeClosure(_ x: () -> Void) -> MyStruct {}
|
|
|
|
func foo() {
|
|
takeClosure {
|
|
#^COMPLETE^#
|
|
}.takeAnotherClosure {
|
|
if true {
|
|
1
|
|
} else {
|
|
1
|
|
}
|
|
}
|
|
}
|
|
|
|
// COMPLETE: Begin completions
|
|
// COMPLETE: Decl[Struct]/CurrModule: MyStruct[#MyStruct#]; name=MyStruct
|
|
// COMPLETE: End completions
|