aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/i1802.scala
Commit message (Collapse)AuthorAgeFilesLines
* Disallow taking a class tag of Nothing or Null.Martin Odersky2017-02-011-2/+2
| | | | | | | | It seems in most cases this leads to weird behavior and cause confusing error messages later. It also means we cannot create an Array[Nothing], except by passing the classtag explicitly.
* Make errors are not swept under the carpetMartin Odersky2016-12-171-0/+21
Typer#ensureReported's comment outlines an example where errors could go unreported, resulting in error trees after typer without any reported error messages. This commit makes sure that at least one error is reported if a tree node has an error type. Fixes #1802.