-
Notifications
You must be signed in to change notification settings - Fork 1.1k
casting covariant type with Nothing fails in java #8936
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
Labels
Comments
Does this work with scalac? |
Yes. |
It needs to be |
smarter
added a commit
to dotty-staging/dotty
that referenced
this issue
May 11, 2020
The runtime classes are called "scala.runtime.Nothing$" and "scala.runtime.Null$", but the signatures were missing the dollar at the end. Since these two types are special anyway, we can just emit their signature directly and not bother with loading their classfiles.
smarter
added a commit
to dotty-staging/dotty
that referenced
this issue
May 11, 2020
The runtime classes are called "scala.runtime.Nothing$" and "scala.runtime.Null$", but the signatures were missing the dollar at the end. Since these two types are special anyway, we can just emit their signature directly and not bother with loading their classfiles.
OlivierBlanvillain
added a commit
that referenced
this issue
May 18, 2020
Fix #8936: Correct generic signature for Nothing/Null
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Minimized code
Output
Expectation
Compilation succeeds
The text was updated successfully, but these errors were encountered: