-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Inlining private method breaks compilation #14042
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
It's because we do not generate inline accessors for inline methods. See I see two possible ways to fix this. Ideally, we do create an inline accessor which is itself defined If that does not work, we could also issue a static error if an inline method calls a private inline method. |
It turns out the static error route would invalidate several existing tests and the compiler itself. |
To fix this we first need to fix #14048 as we would probably fit it on the way. |
We should be evaluating this branch but the symbol is |
The issue comes from transforming @odersky is there a way to compute this symbol? |
@nicolasstucki Not if it is private. |
Compiler version
3.1.0
Minimized code
Output
Expectation
Successful compilation
The text was updated successfully, but these errors were encountered: