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

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^#
}