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.
21 lines
437 B
Swift
21 lines
437 B
Swift
// RUN: %batch-code-completion
|
|
|
|
func takeClosure(x: () -> Void) {}
|
|
func takeString(_ a: String) -> MyStruct {}
|
|
|
|
struct MyStruct {
|
|
func style(arg: Int) {}
|
|
}
|
|
|
|
func foo() {
|
|
takeClosure {
|
|
takeString("\(1)")
|
|
.style(#^COMPLETE^#)
|
|
}
|
|
}
|
|
|
|
// COMPLETE: Begin completions, 1 items
|
|
// COMPLETE: Decl[InstanceMethod]/CurrNominal/Flair[ArgLabels]/TypeRelation[Convertible]: ['(']{#arg: Int#}[')'][#Void#];
|
|
// COMPLETE: End completions
|
|
|