Skip to content

Fix #8936: Correct generic signature for Nothing/Null #8943

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

Merged
merged 1 commit into from
May 18, 2020

Conversation

smarter
Copy link
Member

@smarter smarter commented 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.

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 OlivierBlanvillain merged commit 93132bd into scala:master May 18, 2020
@OlivierBlanvillain OlivierBlanvillain deleted the nothing-erasure branch May 18, 2020 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

casting covariant type with Nothing fails in java
2 participants