aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/i0281-null-primitive-conforms.scala
Commit message (Collapse)AuthorAgeFilesLines
* Negtests with // error commentsvsalvis2016-02-181-3/+3
|
* Disable implicit conversions between from `Null` and `Nothing`.Martin Odersky2014-12-131-0/+6
This is necessary to reject code like val x: Boolean = null Without the restriction, this code would typecheck and expand to val x: Boolean = Predef.Boolean2boolean(null) since `null` counts as a value of type `java.kang.Boolean`.