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

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