Skip to content

Commit 4be229e

Browse files
committed
FIXME operators unexpectedly passing
1 parent 7b6f787 commit 4be229e

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
@@ -89,6 +89,7 @@ extension B: @retroactive main::Equatable {
8989
let fn: (main::Int, main::Int) -> main::Int =
9090
// FIXME improve: expected-error@-1 3{{cannot find type 'main::Int' in scope}}
9191
(main::+)
92+
// FIXME: should fail????
9293

9394
let magnitude: Int.main::Magnitude = main::magnitude
9495
// FIXME improve: expected-error@-1 {{'main::Magnitude' is not a member type of struct 'Swift.Int'}}
@@ -147,6 +148,7 @@ extension C: @retroactive ModuleSelectorTestingKit::Equatable {
147148
let fn: (ModuleSelectorTestingKit::Int, ModuleSelectorTestingKit::Int) -> ModuleSelectorTestingKit::Int =
148149
// FIXME improve: expected-error@-1 3{{cannot find type 'ModuleSelectorTestingKit::Int' in scope}}
149150
(ModuleSelectorTestingKit::+)
151+
// FIXME: should fail????
150152

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

0 commit comments

Comments
 (0)