jaccomoc/jactl

Inner class of base class should be visible to child class

Closed this issue · 0 comments

If an inner class is defined in a based class then this class should also be visible to child classes that extend the base class.
At the moment this fails:

class X { class Y { def f() {1} }}
class Z extends X { int g(){ new Y().f() } }; new Z().g()

Get errror:

io.jactl.CompileError: Unknown class 'Y' @ line 2, column 35
 class Z extends X { int g(){ new Y().f() } }; new Z().g()
                                  ^