Closed
Description
This is a bug if the importing module should be able to see the private items. E.g.,
struct Foo;
mod sub {
import super::*;
type Bar = Foo; // Error: use of undeclared type name Foo
}
I think there is a backwards compatibility hazard here, because if there is already an item called Foo
in sub
then we currently get no error, but we ought to get a name clash (unless we allow shadowing in this case).
triage: I-nominated