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.
19 lines
427 B
Swift
19 lines
427 B
Swift
// RUN: %batch-code-completion
|
|
|
|
// GLOBAL: Decl[GlobalVar]/CurrModule: invalidDecl[#<<error type>>#];
|
|
let invalidDecl = INVALID
|
|
|
|
struct S {
|
|
// MEMBER: Decl[InstanceMethod]/CurrNominal: invalidMethod()[#<<error type>>#];
|
|
func invalidMethod() -> INVALID
|
|
}
|
|
|
|
func test() {
|
|
#^GLOBAL_1?check=GLOBAL^#
|
|
#^GLOBAL_2?check=GLOBAL^#
|
|
}
|
|
|
|
func testMember(val: S) {
|
|
val.#^MEMBER_1?check=MEMBER^##^MEMBER_2?check=MEMBER^#
|
|
}
|