Resolution into transitive imports does not consider nesting
We have an implicit resolution order:
- local definitions
- local imports
- transitive imports
- definitions and imports in surrounding scopes
Thereby, all transitive imports are handled equally. In
class A { int i; } class B:A { int i; } class C:B { int j = i; }
Submitted by Guido Wachsmuth on 26 June 2013 at 16:28
i
resolves to A.i (and probably also to B.i), but it should resolve to B.i.
Log in to post comments