Oops, hit Send too soon…
> Pyry Jahkola wrote:
>
> import A // ok, unqualified import keeps A as a second-class
> identifier
> import B as B // ok, qualified import makes B a first-class identifier in
> file scope
>
> typealias A = Int // ok, shadows the module name A
>
> typealias B = Int
> // error: invalid redeclaration of 'Bar'
> // note: previously declared here: 'import Bar as Bar'
Of course that last error message was meant to read:
// error: invalid redeclaration of 'B'
// note: previously declared here: 'import B as B'
— Pyry
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution