aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled/not-representable
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1465 from dotty-staging/fix-#1457odersky2016-09-162-0/+24
|\ | | | | Fix #1457: Three incompatbilities with scalac
| * Accommodate Scala2 name resolution schemeMartin Odersky2016-08-263-23/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Scala2 does not conform to spec Section 2, where it says: Bindings of different kinds have a precedence defined on them: 1. Definitions and declarations that are local, inherited, or made available by a package clause and also defined in the same compilation unit as the reference, have highest precedence. 2. Explicit imports have next highest precedence. 3. Wildcard imports have next highest precedence. 4. Definitions made available by a package clause, but not also defined in the same compilation unit as the reference, have lowest precedence. In fact Scala 2, merges (1) and (4) into highest precedence. This commit simulates the Scala2 behavior under -language:Scala2, but gives a migration warning. For the naming-resolution test case we get: dotc *.scala -language:Scala2 -migration callsite.scala:9: migration warning: Name resolution will change. currently selected : naming.resolution.Files in the future, without -language:Scala2: java.nio.file.Files' where Files is a type in package object package which is an alias of java.util.stream.Stream[java.nio.file.Path] Files' is a class in package file def gimmeFiles: Files = Files.list(Paths.get(".")) ^ one warning found
| * Fix #1457: Three incompatbilities with scalacMartin Odersky2016-08-235-0/+47
| | | | | | | | | | | | | | | | Two of these are unavoidable. I moved the tests to diabled/not-representable and added in each case a comment to the main scala file detailing why there is a deviation. The last one (import-rewrite) is fixed.
* | Add some run testsMartin Odersky2016-09-141-0/+21
| |
* | More tests recategorizedMartin Odersky2016-08-261-0/+25
| |
* | Move tests to right directoryMartin Odersky2016-08-265-0/+12
| |
* | Implement alternative desugaring of for-if to filter.Martin Odersky2016-08-262-0/+93
| | | | | | | | | | | | | | Fallback to .filter if a .withFilter is not available, but do this only for .withFilter calls generated from for expressions (this is different from what scalac does; the latter can also rewrite .withFilter calls given in source, which is not desirable.
* | Recategorize testsMartin Odersky2016-08-261-0/+20
|/ | | | | | | | | Passing tests from pending/pos go in pos. Some others go in diabled/not-testable. These are tests that require a compilation order which we cannot yet do with our unit testing framework. Compiling them alltogether (as is now doen in junit) does not work either for them because they contain a duplicate class.
* Test reshufflingMartin Odersky2016-08-181-0/+10
| | | | | | - Delete redundant t2660 (exists elready in pos) - Comment t1756 - Recategorize tryexpr
* Drop restriction to 2nd order hk typesMartin Odersky2016-07-121-3/+3
| | | | Allow hk type parameters to be higher kinded themselves.
* Add spaces around + in tests.Dmitry Petrashko2015-04-091-1/+1
|
* Replace tabs with 4 spaces in Dotty tests.Dmitry Petrashko2015-04-091-2/+2
|
* Test reorgMartin Odersky2015-02-071-0/+15
|
* tests reorgsMartin Odersky2014-12-214-0/+73
| | | | Move some tests into proper slots + comments what they are.
* Test re-org.Martin Odersky2014-12-192-0/+117
| | | | Moved some working test to pos. I wonder why they were in pending? They did work for me.
* Tests pos 20xx 21xxMartin Odersky2014-05-202-0/+97
|
* Pos tests t17xx - t19xxMartin Odersky2014-05-202-0/+4
|
* More testsMartin Odersky2014-05-122-0/+62