Skip to content

Commit 17d7c0f

Browse files
committed
[Tests] NFC: Adjust new code completion tests to account for any
1 parent 845f609 commit 17d7c0f

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

test/IDE/complete_at_top_level.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ func resyncParserB14() {}
295295
"\(1) \(#^STRING_INTERP_2?check=STRING_INTERP^#) \(2)"
296296
var stringInterp = "\(#^STRING_INTERP_3?check=STRING_INTERP^#)"
297297
_ = "" + "\(#^STRING_INTERP_4?check=STRING_INTERP^#)" + ""
298-
// STRING_INTERP-DAG: Decl[InstanceMethod]/CurrNominal/Flair[ArgLabels]/IsSystem: ['(']{#(value): Any.Type#}[')'][#Void#];
298+
// STRING_INTERP-DAG: Decl[InstanceMethod]/CurrNominal/Flair[ArgLabels]/IsSystem: ['(']{#(value): any Any.Type#}[')'][#Void#];
299299
// STRING_INTERP-DAG: Decl[Struct]/CurrModule: FooStruct[#FooStruct#]; name=FooStruct
300300
// STRING_INTERP-DAG: Decl[FreeFunction]/CurrModule/TypeRelation[Invalid]: fooFunc1()[#Void#];
301301
// STRING_INTERP-DAG: Decl[FreeFunction]/CurrModule: optStr()[#String?#];

test/IDE/complete_call_as_function.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ func testCallAsFunction(add: Adder, addTy: Adder.Type) {
4444
// METATYPE_NO_DOT-DAG: Decl[InstanceMethod]/CurrNominal: .callAsFunction({#(self): Adder#})[#(x: Int, y: Int) -> Int#];
4545
// METATYPE_NO_DOT-DAG: Decl[Constructor]/CurrNominal: .init({#base: Int#})[#Adder#];
4646
// METATYPE_NO_DOT-DAG: Keyword[self]/CurrNominal: .self[#Adder.Type#];
47-
// METATYPE_NO_DOT-DAG: Decl[InfixOperatorFunction]/OtherModule[Swift]/IsSystem: != {#Any.Type?#}[#Bool#];
48-
// METATYPE_NO_DOT-DAG: Decl[InfixOperatorFunction]/OtherModule[Swift]/IsSystem: == {#Any.Type?#}[#Bool#];
47+
// METATYPE_NO_DOT-DAG: Decl[InfixOperatorFunction]/OtherModule[Swift]/IsSystem: != {#(any Any.Type)?#}[#Bool#];
48+
// METATYPE_NO_DOT-DAG: Decl[InfixOperatorFunction]/OtherModule[Swift]/IsSystem: == {#(any Any.Type)?#}[#Bool#];
4949

5050
let _ = addTy.#^METATYPE_DOT^#;
5151
// METATYPE_DOT: Begin completions, 3 items

test/IDE/complete_in_closures.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ func testCompleteInMatchOfAssociatedValueInSwitchCase() {
470470
}
471471
})
472472

473-
// IN_ASSOC_OF_CASE_IN_CLOSURE-DAG: Decl[LocalVar]/Local: str[#String#]; name=str
473+
// IN_ASSOC_OF_CASE_IN_CLOSURE-DAG: Decl[LocalVar]/Local/TypeRelation[Convertible]: str[#String#]; name=str
474474
}
475475

476476
}

test/IDE/complete_operators.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ func testInfix15<T: P where T.T == S2>() {
210210
// INFIX_15-DAG: Decl[InstanceMethod]/CurrNominal: .foo({#(self): P#})[#() -> S2#]; name=foo(:)
211211
// INFIX_15-DAG: Keyword[self]/CurrNominal: .self[#T.Type#]; name=self
212212
// INFIX_15-DAG: Keyword/CurrNominal: .Type[#T.Type#]; name=Type
213-
// INFIX_15-DAG: Decl[InfixOperatorFunction]/OtherModule[Swift]/IsSystem: != {#Any.Type?#}[#Bool#];
214-
// INFIX_15-DAG: Decl[InfixOperatorFunction]/OtherModule[Swift]/IsSystem: == {#Any.Type?#}[#Bool#];
213+
// INFIX_15-DAG: Decl[InfixOperatorFunction]/OtherModule[Swift]/IsSystem: != {#(any Any.Type)?#}[#Bool#];
214+
// INFIX_15-DAG: Decl[InfixOperatorFunction]/OtherModule[Swift]/IsSystem: == {#(any Any.Type)?#}[#Bool#];
215215

216216
func testInfix16<T: P where T.T == S2>() {
217217
T.foo#^INFIX_16^#

0 commit comments

Comments
 (0)