We have an implicit resolution order:

  1. local definitions
  2. local imports
  3. transitive imports
  4. 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; }

i resolves to A.i (and probably also to B.i), but it should resolve to B.i.

Submitted by Guido Wachsmuth on 26 June 2013 at 16:28

Log in to post comments