Skip to content

Commit 1b42bf0

Browse files
committed
[NFC] Improve test comments
1 parent e25f542 commit 1b42bf0

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

test/NameLookup/module_selector.swift

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ extension ModuleSelectorTestingKit::A: Swift::Equatable {
3737
mutating func myNegate() {
3838
let fn: (Swift::Int, Swift::Int) -> Swift::Int =
3939
(+)
40-
// FIXME: it'd be nice to handle module selectors on operators.
40+
// TODO: it'd be nice to handle module selectors on operators.
4141

4242
let magnitude: Int.Swift::Magnitude = main::magnitude
4343
// expected-error@-1 {{cannot convert value of type 'Never' to specified type 'Int.Magnitude' (aka 'UInt')}}
@@ -92,7 +92,7 @@ extension B: main::Equatable {
9292
// expected-note@-3 {{did you mean module 'Swift'?}} {{25-29=Swift}}
9393
// expected-note@-4 {{did you mean module 'Swift'?}} {{39-43=Swift}}
9494
(main::+)
95-
// FIXME: it'd be nice to handle module selectors on operators.
95+
// TODO: it'd be nice to handle module selectors on operators.
9696
// expected-error@-2 {{expected expression}}
9797
// expected-error@-3 {{expected expression after operator}}
9898

@@ -154,7 +154,7 @@ extension ModuleSelectorTestingKit::C: ModuleSelectorTestingKit::Equatable {
154154
// expected-note@-3 {{did you mean module 'Swift'?}} {{45-69=Swift}}
155155
// expected-note@-4 {{did you mean module 'Swift'?}} {{79-103=Swift}}
156156
(ModuleSelectorTestingKit::+)
157-
// FIXME: it'd be nice to handle module selectors on operators.
157+
// TODO: it'd be nice to handle module selectors on operators.
158158
// expected-error@-2 {{expected expression}}
159159
// expected-error@-3 {{expected expression after operator}}
160160

@@ -211,11 +211,11 @@ extension D: Swift::Equatable {
211211
// FIXME improve: expected-note@-1 {{did you mean 'myNegate'?}}
212212

213213
let fn: (Swift::Int, Swift::Int) -> Swift::Int =
214-
// FIXME:
215214
(Swift::+)
216-
// expected-error@-1 {{cannot convert value of type '()' to specified type '(Int, Int) -> Int'}}
217-
// expected-error@-2 {{expected expression}}
218-
// expected-error@-3 {{expected expression after operator}}
215+
// TODO: it'd be nice to handle module selectors on operators.
216+
// expected-error@-2 {{cannot convert value of type '()' to specified type '(Int, Int) -> Int'}}
217+
// expected-error@-3 {{expected expression}}
218+
// expected-error@-4 {{expected expression after operator}}
219219
let magnitude: Int.Swift::Magnitude = Swift::magnitude
220220
// expected-error@-1 {{declaration 'magnitude' is not imported through module 'Swift'}}
221221
// FIXME should be un-addressable via main: expected-note@-2 {{did you mean module 'main'?}}
@@ -253,7 +253,7 @@ struct AvailableUser {
253253
}
254254

255255
func builderUser2(@main::MyBuilder fn: () -> Void) {}
256-
// FIXME improve: expected-error@-1 {{unknown attribute 'MyBuilder'}}
256+
// FIXME should succeed: expected-error@-1 {{unknown attribute 'MyBuilder'}}
257257

258258
func builderUser3(@ModuleSelectorTestingKit::MyBuilder fn: () -> Void) {}
259259
// no-error
@@ -463,6 +463,7 @@ func badModuleNames() {
463463

464464
_ = "foo".NonexistentModule::count
465465
// FIXME improve: expected-error@-1 {{value of type 'String' has no member 'NonexistentModule::count'}}
466+
// FIXME: expected-EVENTUALLY-note@-2 {{did you mean module 'Swift'?}} {{13-30=Swift}}
466467

467468
let x: NonexistentModule::MyType = NonexistentModule::MyType()
468469
// expected-error@-1 {{cannot find type 'NonexistentModule::MyType' in scope}}

0 commit comments

Comments
 (0)