Normally in Swift you can resolve naming collisions using the syntax ModuleName.ObjectName. For example, if you have two packages, Foo and Bar, both with a class Snafu, you can specify Foo.Snafu and Bar.Snafu.
However, if the package shares a name with one of the data types declared in the package, this breaks down. So, for example, in the attached test case, there is a package Sample with a struct named Sample. If you import that package into other code and then attempt to access the struct as follows
var s = Sample.Sample()
you get a compiler error: type 'Sample' has no member 'Sample'
The text was updated successfully, but these errors were encountered: