Skip to content

Commit 75d3825

Browse files
committed
FIXME operators unexpectedly passing
1 parent 229d341 commit 75d3825

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/NameLookup/module_selector.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ extension B: @retroactive main::Equatable {
9292
let fn: (main::Int, main::Int) -> main::Int =
9393
// FIXME improve: expected-error@-1 3{{cannot find type 'main::Int' in scope}}
9494
(main::+)
95+
// FIXME: should fail????
9596

9697
let magnitude: Int.main::Magnitude = main::magnitude
9798
// FIXME improve: expected-error@-1 {{'main::Magnitude' is not a member type of struct 'Swift.Int'}}
@@ -151,6 +152,7 @@ extension C: @retroactive ModuleSelectorTestingKit::Equatable {
151152
let fn: (ModuleSelectorTestingKit::Int, ModuleSelectorTestingKit::Int) -> ModuleSelectorTestingKit::Int =
152153
// FIXME improve: expected-error@-1 3{{cannot find type 'ModuleSelectorTestingKit::Int' in scope}}
153154
(ModuleSelectorTestingKit::+)
155+
// FIXME: should fail????
154156

155157
let magnitude: Int.ModuleSelectorTestingKit::Magnitude = ModuleSelectorTestingKit::magnitude
156158
// FIXME improve: expected-error@-1 {{'ModuleSelectorTestingKit::Magnitude' is not a member type of struct 'Swift.Int'}}

0 commit comments

Comments
 (0)