Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inner class of base class should be visible to child class #31

Closed
jaccomoc opened this issue Oct 15, 2023 · 0 comments
Closed

Inner class of base class should be visible to child class #31

jaccomoc opened this issue Oct 15, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@jaccomoc
Copy link
Owner

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()
                                  ^
@jaccomoc jaccomoc added the bug Something isn't working label Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant