aboutsummaryrefslogtreecommitdiff
path: root/tests/pos-special
Commit message (Collapse)AuthorAgeFilesLines
* Avoid spurious procedure syntax migration warningMartin Odersky2015-11-091-0/+6
|
* Handle variance unsoundness in scalacMartin Odersky2015-11-051-0/+21
| | | | | | | | | | | | | | | | | The included test pos-special/variances-constr.scala demonstrates an unsoundness in the variance checking of scalac. Scalac excludes symbols owned by constructors from the checking. This is unsound, as can be demonstrated by compiling the test and observing output of the program run: Exception in thread "main" java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String at Test$.main(variances-constr.scala:17) at Test.main(variances-constr.scala) Dotty allows this code only under -language:Scala2 and issues a migration warning.
* Deal gracefully with missing return types of abstract menthods.Martin Odersky2015-11-012-0/+5
| | | | | | | 1) Better error message: "missing return type" instead of `=' expected. 2) Allow them under language:Scala2 Fixes #871
* Moved pending tests that work into pos and neg.Martin Odersky2014-11-171-0/+11
One test (t2613) required lifting a hard recursion limit in findMember (used for debug only, will be removed in the future). The same test also requires -Yno-deep-subtypes to be reset, so it's in pos_special instead of pos.