aboutsummaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Update tests fixing contributor PRFelix Mulder2016-11-246-17/+17
|
* 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
| | | |
| * | | fix failing testliu fengyun2016-11-161-1/+1
| | | |
| * | | add tests for #1701liu fengyun2016-11-161-0/+3
| |/ /
* | | Merge pull request #1718 from dotty-staging/fix-#1703odersky2016-11-171-0/+5
|\ \ \ | | | | | | | | Fix #1703
| * | | Move test to neg positionMartin Odersky2016-11-162-5/+5
| | | |
| * | | Fix #1703 - survive illegal self type clauseMartin Odersky2016-11-161-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Since self types are critical we should only install one if it is syntactcally correct. Fixes #1703.
* | | | Merge pull request #1717 from dotty-staging/fix-#1688odersky2016-11-161-0/+6
|\| | | | |/ / |/| | Don't allow redefinition of core classes
| * | Don't allow redefinition of core classesMartin Odersky2016-11-101-0/+6
| |/ | | | | | | Fixes #1688.
* | Merge pull request #1697 from dotty-staging/fix-#1664Dmitry Petrashko2016-11-161-0/+12
|\ \ | | | | | | Fix #1664: Refine isOuterRef condition
| * | Fix #1664: Refine isOuterRef conditionMartin Odersky2016-11-101-0/+12
| |/ | | | | | | | | | | | | | | We forgot the case where a hoistable method can still refer to free variables that have to be passed using outer pointers. Fixes #1664.
* | Merge pull request #1666 from dotty-staging/fix-#1653odersky2016-11-163-2/+12
|\ \ | | | | | | Fix #1653: Check "no inherit from final" earlier.
| * | Refactor testMartin Odersky2016-11-072-2/+9
| | | | | | | | | | | | | | | | | | | | | After refactoring, one test (cannot extend final class) shadowed the others, which wer done in a later phase. Splitting in two to get all errors again.
| * | Fix #1653: Check "no inherit from final" earlier.Martin Odersky2016-11-061-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test case is an illegal inheritance from a primitive value class, which makes this an illegal value class. Previously, the error was detected by refchecks, but crashes occured earlier (when generating synthesized methods) or at the same phase block (in extension methods). The problem is avoided by moving the test to Namer. Review by @smarter.
* | | Fix #1662: Add missing case for singletonMartin Odersky2016-11-101-0/+6
| |/ |/| | | | | | | | | Have to handle also SkolemTypes there. Fixes #1662.
* | Change `ClassicReporter` to `TestReporter` in test sourcesFelix Mulder2016-11-0946-409/+92
| |
* | add the forgotten patmat testliu fengyun2016-11-091-1/+1
| |
* | Fixed #1672: Add regression test.Nicolas Stucki2016-11-081-0/+7
| | | | | | | | This issue was solved by some other fix.
* | Fix #1605: don't inline methods that have errorsFelix Mulder2016-11-071-0/+5
| |
* | Merge pull request #1659 from dotty-staging/fix-#1640Felix Mulder2016-11-062-0/+12
|\ \ | | | | | | Fix #1640: Avoid applications with untyped function parts
| * | Test case for #1641Martin Odersky2016-11-051-0/+8
| | | | | | | | | | | | | | | #1641 compiles under latest master. This test case is there to ensure it stays that way.
| * | Fix #1640: Avoid applications with untyped function partsMartin Odersky2016-11-051-0/+4
| |/ | | | | | | | | Avoid applications with untyped function parts even if program is erroneous. Taking the symbol fails for these applications, which can cause crashes.
* / Disallow wildcard arguments in newMartin Odersky2016-11-051-0/+19
|/ | | | | | These might lead to bad bounds if unchecked. Scalac disallows them also, but with a confusing error message ("class type expected" on the class).
* Merge pull request #1657 from dotty-staging/fix-#1638odersky2016-11-051-0/+3
|\ | | | | Fix #1638: Don't import when typing a package clause
| * Fix #1638: Don't import when typing a package clauseMartin Odersky2016-11-031-0/+3
| | | | | | | | | | | | | | When typing the first identifier of a package clause, disable imports, as package clauses are never imported. Fixes #1638.
* | Merge pull request #1655 from dotty-staging/change-future-defs-okodersky2016-11-051-0/+8
|\ \ | | | | | | Fix #1637: Future defs are always OK
| * | Fix #1637: Future defs are always OKMartin Odersky2016-10-311-0/+8
| |/ | | | | | | | | | | | | Drop special mode that handles future defs without which we get DenotationNotDefinedHere errors. In more than a year, this has only turned up false negatives. So I think it's better to drop the check, and the contortions needed to deal with it.
* | Reclassified testMartin Odersky2016-11-032-5/+5
| | | | | | | | Should be a neg test now.
* | Fix #1652: Make assertion more robustMartin Odersky2016-11-031-0/+5
|/ | | | | An assertion fired giving a false negative after a fuzzing test which introduced an ill-kinded type argument.
* Merge pull request #1600 from dotty-staging/fix-#1500Guillaume Martres2016-10-251-0/+19
|\ | | | | Fix-#1500 Include constraining type variables when interpolating
| * Fix-#1500 Include constraining type variables when interpolatingMartin Odersky2016-10-151-0/+19
| | | | | | | | Fixes #1500. Review by @smarter.
* | Merge pull request #1599 from dotty-staging/fix-#1570Guillaume Martres2016-10-251-0/+4
|\ \ | | | | | | Fix #1570: Allow inline parameters as inline args
| * | Fix #1570: Allow inline parameters as inline argsMartin Odersky2016-10-141-0/+4
| |/ | | | | | | | | | | | | Inline parameters can always be passed to other inline parameters. Fixes #1570.
* | Test that #1614 remains fixed.Dmitry Petrashko2016-10-231-0/+9
| |