Skip to content

Cannot emit primitive conversiton from null to Int assertion error #828

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

Closed
propensive opened this issue Oct 18, 2015 · 0 comments
Closed

Comments

@propensive
Copy link
Contributor

This causes a compiler crash (assertion error) in the backend.

object X {
  val x: Int = null.asInstanceOf[Nothing]
}
DarkDimius added a commit to dotty-staging/dotty that referenced this issue Dec 16, 2015
DarkDimius added a commit to dotty-staging/dotty that referenced this issue Jan 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants