-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Backend generates useless companion class for inner objects #2680
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
Comments
I think for something to be novice-level it needs to be obvious how to fix, or you need to give some instructions on how someone could fix it ;). |
I'd be happy to take a look at this if given some pointers. |
@abeln, backend has a single entry-point to decide where to output files: method |
Also we have some docs on the backend you might find helpful: http://dotty.epfl.ch/docs/contributing/backend.html and http://dotty.epfl.ch/docs/internals/backend.html |
Fix #2680: Backend generates useless companion class for inner objects
The following code:
generates the following files with scalac:
and the following files with Dotty:
The
Outer.hasTasty
is expected but theOuter$Inner.class
isn't, it doesn't seem to contain much:Could we avoid generating these companions? On case-insenstive filesystems they can be harmful: #2673 (comment)
The text was updated successfully, but these errors were encountered: