mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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".
19 lines
401 B
Swift
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^#
|
|
}
|