Skip to content

Commit 899a389

Browse files
authored
Merge pull request #69395 from hairyputtar/hairyputtar-patch-1
fix(test): Fix typo in IDE test
2 parents 3ce2d3a + 4f8ca97 commit 899a389

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/IDE/complete_protocol_static_member.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ extension Indicator where T == Struct {
5151
static var activity: Indicator<Struct> { fatalError() }
5252
}
5353

54-
func receiver<T>(_ inidicator: Indicator<T>) {}
54+
func receiver<T>(_ indicator: Indicator<T>) {}
5555

5656
func test() {
5757
receiver(.#^COMPLETE_GENERIC_TYPE^#)
@@ -60,7 +60,7 @@ func test() {
6060
// COMPLETE_GENERIC_TYPE: Decl[Constructor]/CurrNominal/TypeRelation[Convertible]: init()[#Indicator<T>#];
6161
// COMPLETE_GENERIC_TYPE: Decl[StaticVar]/CurrNominal/TypeRelation[Convertible]: activity[#Indicator<Struct>#];
6262

63-
func testRecursive<T>(_ inidicator: Indicator<T>) {
63+
func testRecursive<T>(_ indicator: Indicator<T>) {
6464
testRecursive(.#^COMPLETE_RECURSIVE_GENERIC^#)
6565
// FIXME: We should be suggesting `.activity` here because the call to `testRecursive` happens with new generic parameters
6666
// COMPLETE_RECURSIVE_GENERIC: Begin completions, 1 item

test/IDE/complete_type.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ struct TypeInStructInheritance2 : , #^TYPE_IN_STRUCT_INHERITANCE_2?check=WITH_GL
313313

314314
struct TypeInStructInheritance3 : FooProtocol, #^TYPE_IN_STRUCT_INHERITANCE_3?check=WITH_GLOBAL_TYPES;check=GLOBAL_NEGATIVE^#
315315

316-
// FIXME: 'check' shold be 'WITH_GLOBAL_TYPES'
316+
// FIXME: 'check' should be 'WITH_GLOBAL_TYPES'
317317
struct TypeInStructInheritance4 : FooProtocol., #^TYPE_IN_STRUCT_INHERITANCE_4?check=WITH_GLOBAL_TYPES_EXPR^#
318318

319319
struct TypeInStructInheritance5 : #^TYPE_IN_STRUCT_INHERITANCE_5?check=WITH_GLOBAL_TYPES;check=GLOBAL_NEGATIVE^# {
@@ -325,7 +325,7 @@ struct TypeInStructInheritance6 : , #^TYPE_IN_STRUCT_INHERITANCE_6?check=WITH_GL
325325
struct TypeInStructInheritance7 : FooProtocol, #^TYPE_IN_STRUCT_INHERITANCE_7?check=WITH_GLOBAL_TYPES;check=GLOBAL_NEGATIVE^# {
326326
}
327327

328-
// FIXME: 'check' shold be 'WITH_GLOBAL_TYPES'
328+
// FIXME: 'check' should be 'WITH_GLOBAL_TYPES'
329329
struct TypeInStructInheritance8 : FooProtocol., #^TYPE_IN_STRUCT_INHERITANCE_8?check=WITH_GLOBAL_TYPES_EXPR^# {
330330
}
331331

0 commit comments

Comments
 (0)