aboutsummaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1781 from dotty-staging/fix-#1776Dmitry Petrashko2016-12-121-0/+3
|\ | | | | Fix #1776: Avoid interaction between parameter forwarding and elimByName
| * Add test caseMartin Odersky2016-12-121-0/+3
| |
* | Merge pull request #1764 from dotty-staging/fix-#1757odersky2016-12-101-0/+6
|\ \ | | | | | | Fix #1757: Be more careful about positions of type variable binders
| * | Add test caseMartin Odersky2016-12-021-0/+6
| | |
* | | Merge pull request #1766 from dotty-staging/fix-#1756odersky2016-12-101-0/+20
|\ \ \ | |_|/ |/| | Fix #1756: Use lexically enclosing class as start of outer path.
| * | Add original test to test caseMartin Odersky2016-12-021-3/+2
| | |
| * | Fix-1756: Use lexically enclosing class as start of outer path.Martin Odersky2016-12-021-0/+21
| |/ | | | | | | | | | | We confused the enclosing class (which skips the current class in super call contexts) and the lexically enclosing class in three locations that all had to do with the start of an outer path.
* | Merge pull request #1768 from dotty-staging/fix-#1765odersky2016-12-101-0/+21
|\ \ | | | | | | Fix #1765: Context bounds and denotation handling
| * | Fix insertAfterMartin Odersky2016-12-021-0/+21
| |/ | | | | | | | | | | | | | | | | | | Once the context-bounds desugaring of i1765.scala was fixed, another problem came up: We hit an invalid denotation due to some interaction between mixin and memoize. It turned out that `insertInsteadOf` did not do what its doc comment claimed: it did not store a forwarding pointer `nextInRun` in the overwritten denotation. Once that was fixed we also needed to fix a follow-on erorr that now we could have chains of invalid denotations linked by `nextInRun`.
* | Merge pull request #1769 from dotty-staging/fix-#1751odersky2016-12-101-0/+17
|\ \ | | | | | | Fix #1751: Make dominator work after erasure
| * | Fix #1751: Make dominator work after erasureMartin Odersky2016-12-021-0/+17
| |/ | | | | | | | | | | i1751.scala shows a case where we need to compute the approximation of an or-type during erasure. This can lead to an empty set of common classes because Any does not exist anymore after erasure.
* | Merge pull request #1778 from dotty-staging/fix-i1773liu fengyun2016-12-082-0/+16
|\ \ | | | | | | Fix #1773: handle patterns in interpolated string
| * | fix #1773: handle patterns in interpolated stringliu fengyun2016-12-082-0/+16
| | |
* | | handle ConstantType in TypeComparerReto Hablützel2016-12-041-0/+4
|/ /
* | Merge pull request #1658 from dotty-staging/fix-#1639odersky2016-12-031-0/+10
|\ \ | | | | | | Fix #1639: Changes around implicits and apply methods
| * | Avoid inserting multiple .apply's.Martin Odersky2016-11-241-0/+10
| | | | | | | | | | | | | | | | | | This can lead to stackoverflow, as i1639.scala shows. Fixes #1639.
* | | Merge pull request #1758 from dotty-staging/change-functionsodersky2016-12-032-1/+73
|\ \ \ | | | | | | | | Drop function 22 limit
| * | | Drop function 22 limit.Martin Odersky2016-11-302-1/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Functions with more than 22 parameters are now automatically converted to functions taking a single object array parameter. This has been achieved by tweaking erasure. Other things I have tried that did ot work out well: - Use a single function type in typer. The problem with this one which could not be circumvented was that existing higher-kinded code with e.g. Funcor assumes that Functon1 is a binary type constructor. - Have a late phase that converts to FunctonXXL instead of doing it in erasure. The problem with that one was that potentially every type could be affected, which was ill-suited to the architecture of a miniphase.
* | | | Merge pull request #1685 from dotty-staging/fix-1665Dmitry Petrashko2016-12-031-0/+7
|\ \ \ \ | |_|_|/ |/| | | Fix #1665: Check that != has an operand on the left.
| * | | Fix #1665: Check that != has an operand on the left.Nicolas Stucki2016-12-011-0/+7
| | | |
* | | | Additional test caseMartin Odersky2016-12-011-0/+2
| | | | | | | | | | | | | | | | This PR also fixes #1649
* | | | Fix #1647 Evaluate annotation arguments in proper contextMartin Odersky2016-12-011-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Need to evaluate annotation arguments in an expression context, since classes defined in asuch arguments should not be entered into enclosing class. Fixes #1647
* | | | New phase for entering annotationsMartin Odersky2016-12-011-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | If we want to do annotation macros right, we need to add annotations before completing definitions. This commit achieves that by adding a new "phase" between index and typecheck.
* | | | Fix $1753 Better comparison of path typesMartin Odersky2016-11-301-0/+22
| |/ / |/| | | | | | | | | | | | | | In this case, a path went through a type parameter which was aliased to a singleton type. Need to dealias to get to the special case handling two paths.
* | | make test runnableliu fengyun2016-11-282-3/+5
| | |
* | | fix #1748: desugaring with StringContext in PatDefliu fengyun2016-11-271-0/+14
| | |
* | | Merge pull request #1719 from dotty-staging/fix-#1705odersky2016-11-241-0/+24
|\ \ \ | | | | | | | | Fix #1707: Survive non-existing positions in parser
| * | | Renamed test file to give correct issue numberMartin Odersky2016-11-241-0/+0
| | | |
| * | | More robust scheme for taking start/end of positions when parsingMartin Odersky2016-11-241-0/+24
| | |/ | |/| | | | | | | | | | | | | | | | Some trees, which do not consume input have unassigned positions (so that they can fit in whatever range they are integrated). It's therefore risky to take the start or end of a parsed tree's position. This commit guards against the case where the position of the tree does not exist.
* | | Merge pull request #1742 from dotty-staging/topic/colon-in-printerFelix Mulder2016-11-247-17/+26
|\ \ \ | |/ / |/| | Fix colons in printer
| * | Fix defs not being printed correctlyFelix Mulder2016-11-241-0/+9
| | |
| * | Update tests fixing contributor PRFelix Mulder2016-11-246-17/+17
| |/
* / Enable GADT matching for pattern valuesMartin Odersky2016-11-241-0/+11
|/ | | | | So far, only typed patterns an dunapply had GADT matching. i1737.scala shows that we need to do the same thing for objects.
* checkNoPrivateLeaks is now also done in TreeUnpicklerGuillaume Martres2016-11-221-0/+9
| | | | | This could be abstracted better but we'll end up replacing checkNoPrivateLeaks soon anyway due to https://github.com/lampepfl/dotty/issues/1723
* checkNoPrivateLeaks: handle defs in local classesGuillaume Martres2016-11-222-0/+19
| | | | | | The access boundary of a def in a local class is the owner of that class, previously it was set to the access boundary of the owner of the class instead.
* checkNoPrivateLeaks: handle references to companion membersGuillaume Martres2016-11-222-0/+24
| | | | | | | | | | | Previously Outer2#Inner#foo failed to compile with: ``` non-private method foo refers to private value x in its type signature ``` This should compile because the boundary of `foo` is `class Outer2` and the boundary of `x` is `object Outer2`. This commit fixes this by also considering the linked boundary in `checkNoPrivateLeaks`.
* Fix pickle_pickleOK testGuillaume Martres2016-11-222-0/+4
| | | | | | | It failed because two files in the same package compiled at the same time defined respectively a class Test and an object Test. I'm guessing this did not fail before because failure depends on the order of the files on the command line.
* Fix partest compilation of java-interop tests by moving themGuillaume Martres2016-11-2275-0/+0
| | | | | | | | | | Previously, the tests where all in tests/pos/java-interop which means that partest would try to run them as one single test, this failed because some of these tests define classes with the same name. We could fix this by putting them all in separate packages but for now it's simple to move them to tests/pos-java-interop (they will still be run individually as they should thanks to the `java_all` test defined in tests.scala)
* Move sjs, make sure that partest compiles everything in dirsFelix Mulder2016-11-221-3/+3
|
* Add dotty-library to classpath in dottydoc testsFelix Mulder2016-11-222-25/+25
|
* Create dotty-lib.jar for run testsFelix Mulder2016-11-225-65/+0
|
* Merge pull request #1634 from dotty-staging/change-tasty-pos-ctdodersky2016-11-214-1/+32
|\ | | | | Towards correct positions in TASTY types
| * Pickle and unpickle type treesMartin Odersky2016-11-163-0/+31
| | | | | | | | | | | | | | Lots of other changes to make positions work out everywhere. One important change is that now trees can be shared, just as types can. This change improves memory requirements (a bit) and also makes positions in shared trees more robust.
| * Make test more robustMartin Odersky2016-11-111-1/+1
| | | | | | | | | | | | Pick a less common name for the missing identifier. Depending on my classpath I sometimes got `x is not a package` as an additional error for this one.
* | fix #1648: mark companion object for java.lang.Object as non-existentliu fengyun2016-11-181-0/+1
| |
* | Merge pull request #1722 from dotty-staging/topic/fix#1708odersky2016-11-172-0/+12
|\ \ | | | | | | Fix #1708: duplicate symbols in package
| * | Annotate error in test not revealed before prev commitFelix Mulder2016-11-171-1/+1
| | |
| * | Unlink type when entering clashing packageFelix Mulder2016-11-172-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | Here we unlink the existing type that clashes with the package to be entered into the symbol table, issue an error and the proceed to enter the rest of the symbols. My concern with this approach is what happens during typechecking if other things reference the unlinked type.
* | | Merge pull request #1720 from dotty-staging/fix-i1701odersky2016-11-172-1/+6
|\ \ \ | | | | | | | | fix #1701: disqualify package name in type name resolution
| * | | fix neg test i1701.scalaliu fengyun2016-11-171-2/+4
| | | |