Files
swift-mirror/test/IDE/complete_trailing_if_expr.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

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