Files
swift-mirror/test/IDE/complete_sequence_invalid.swift
Hamish Knight 0bfbe987b4 [AST] Print ErrorType as _
In preparation for removing UnresolvedType in favor of ErrorType,
start printing ErrorType as `_` unless we've enabled debug printing.
`<<error type>>` should never be presented to the user, instead `_`
now just consistently means "unknown type".
2025-09-21 23:19:06 +01:00

19 lines
401 B
Swift

// RUN: %batch-code-completion
// GLOBAL: Decl[GlobalVar]/CurrModule: invalidDecl[#_#];
let invalidDecl = INVALID
struct S {
// MEMBER: Decl[InstanceMethod]/CurrNominal: invalidMethod()[#_#];
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^#
}