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.
11 lines
311 B
Swift
11 lines
311 B
Swift
// RUN: %batch-code-completion
|
|
|
|
@resultBuilder struct MyBuilder {
|
|
static func buildBlock() -> Int
|
|
static func buildBlock<Content>(_ content: Content) -> Content
|
|
}
|
|
|
|
@MyBuilder func test(action: () -> #^COMPLETE^#Void) {}
|
|
|
|
// COMPLETE: Decl[TypeAlias]/OtherModule[Swift]/IsSystem: Void[#Void#]; name=Void
|