aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/customArgs
Commit message (Collapse)AuthorAgeFilesLines
* Fix #2230: Add regression test.Nicolas Stucki2017-04-121-0/+22
|
* Allow abstract type members in objects.Nicolas Stucki2017-03-011-1/+1
|
* Fix #2000: Make implicit and non-implicit functions incomparable with <:<Martin Odersky2017-02-211-0/+4
| | | | | | | | | Implicit and non-implicit functions are incomparable with <:<, but are treated as equivalent with `matches`. This means implicit and non-implicit functions of the same types override each other, but RefChecks will give an error because their types are not subtypes. Also contains a test for #2002.
* Make non-existent compiler options emit warnings instead of failingFelix Mulder2017-02-201-2/+0
|
* 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