-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Avoid crash in erasure when reference cannot be emitted #18056
Conversation
Wait, why does can |
|
Bar is visible, it's only Base which isn't. |
Indeed. I guess it tries to cast to |
Just uses Bar, it looks like
|
Can you find out why it tried to refer to the inaccessible class? |
The original qualifier type was computed in the wrong context. For the logic to make sense, it needs to compute the type before erasure and then erase that type. That fixes scala#17391 by now compiling it correctly, the same way Scala 2 does.
You were right. There was another, deeper issue that caused the problem. See last commit. |
Fixes #17391