We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
With Scala 2:
scala> "Hello".asInstanceOf[Unit] // OK, nothing happens
With Dotty:
scala> "Hello".asInstanceOf[Unit] java.lang.ClassCastException: java.lang.String cannot be cast to scala.runtime.BoxedUnit
What is the right behavior?