aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/customArgs
Commit message (Collapse)AuthorAgeFilesLines
* Fix #1750: Handle illegal class overrides betterMartin Odersky2017-01-291-2/+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.
* Implement -Yno-predef and -Yno-importsjvican2016-06-293-0/+9
| | | | | | * Implement flags -Yno-predef and -Yno-imports * Add unit tests for both
* Properly report errors when cli flags are malformedGuillaume Martres2016-06-021-0/+2
| | | | | Previously we returned an empty Reporter with no errors so partest reported the test as a success.
* Issue MergeError exception for double def situationsMartin Odersky2016-05-181-17/+3
| | | | | | | | When finding two symbols in the same class that have the same signature as seen from some prefix, issue a merge error. This is simpler and more robust than the alternative of producing an overloaded denotation and dealing with it afterwards.
* Fix test caseMartin Odersky2016-05-181-2/+2
|
* Test caseMartin Odersky2016-05-181-0/+40
|
* Neg tests: remove negTest flag; neg tests are binded to neg directoryVladimirNik2016-03-031-0/+9
|
* Neg tests: remove xerror parameter from tests (compute based on // error)VladimirNik2016-03-033-0/+272