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.
The text was updated successfully, but these errors were encountered:
Attachment: Download
Environment
Version 9.2 (9C40b)
Swift 4.0.3
Additional Detail from JIRA
md5: 1d25e499eff0b439a95f4dcda11bf693
duplicates:
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.
The text was updated successfully, but these errors were encountered: