Skip to content

Conversation

@smarter
Copy link
Member

@smarter smarter commented Mar 23, 2015

Incidentally this means that:

  val d = null.asInstanceOf[Double]

is now correctly transformed to:

  val d = scala.Double.unbox(null)

Previously it was translated to:

  val d = null: Double

Which is wrong and fails in the backend.

Review by @odersky

Incidentally this means that:
  val d = null.asInstanceOf[Double]
is now correctly transformed to:
  val d = scala.Double.unbox(null)
Previously it was translated to:
  val d = null: Double
Which is wrong and fails in the backend.
odersky added a commit that referenced this pull request Mar 26, 2015
Fix isNullableClass to also work after Erasure
@odersky odersky merged commit c5d8cba into scala:master Mar 26, 2015
tgodzik added a commit to tgodzik/scala3 that referenced this pull request Jul 3, 2025
Backport "fix: handle multiple params lists in for infer type" to 3.3 LTS
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.

2 participants