Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-6705] Symbol with the name of the module overrides module namespace #49254

krzyzanowskim opened this issue Jan 5, 2018 · 0 comments


Copy link

@krzyzanowskim krzyzanowskim commented Jan 5, 2018

Previous ID SR-6705
Radar None
Original Reporter @krzyzanowskim
Type Bug
Status Resolved
Resolution Duplicate

Attachment: Download


Version 9.2 (9C40b)

Swift 4.0.3

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug
Assignee None
Priority Medium

md5: 1d25e499eff0b439a95f4dcda11bf693


  • SR-898 Unresolvable "ambiguous for type lookup" error when using multiple modules

Issue Description:

Let's say I have an Objective-C TestModule that exports TestModule type (the same name). Now I import it to Swift project and want to use it with the TestModule namespace eg.

TestModule.Foo is a class from TestModule. I can use it without specifying the module namespace so Foo will work, but call to TestModule.Foo results in an error that Foo is not a member of TestModule.

I could import just this type specifying type:

import class TestModule.Foo

and that'd work, except when I just import the whole module

import TestModule

in this case (the most common case I'd say) I don't have a syntax to specify a call to TestModule.Foo properly.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

1 participant