aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/t7278.scala
Commit message (Collapse)AuthorAgeFilesLines
* Fix #1750: Handle illegal class overrides betterMartin Odersky2017-01-291-1/+1
| | | | | | | | | | | | | | | | | | Illegal class overrides are fundamentally at odds with the way dotty represents types and therefore can cause lots of low-level problems. Two measures in this commit First, we detect direct illegal class overrides on completion instead of during RefChecks. Break the override by making the previously overriding type private. This fixes i1750.scala, but still fails for indirect overrides between two unrelated outer traits/classes that are inherited by the same class or trait. We fix this by catching the previously thrown ClassCastException in both ExtractAPI and RefChecks. Test case for indirect overrides is in i1750a.scala.
* Fix bounds checking of hk applied typedMartin Odersky2016-07-141-4/+4
| | | | | Previous logic could only handle classes as constructors. Also, address other reviewers comments.
* Neg tests: remove xerror parameter from tests (compute based on // error)VladimirNik2016-03-031-3/+3
|
* New test files from SI 7278.Martin Odersky2016-02-091-0/+42