aboutsummaryrefslogtreecommitdiff
path: root/tests/run
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1111 from dotty-staging/fix-#1099Dmitry Petrashko2016-03-021-0/+25
|\ | | | | Special case pattern matching against abstract types with class tags
| * Special case for pattern matching tagged abstract types.Martin Odersky2016-02-201-0/+25
| | | | | | | | Add special case when pattern matching against an abstract type that comes with a class tag
* | Test that #1114 is fixed.Dmitry Petrashko2016-02-201-0/+21
|/
* Merge pull request #898 from dotty-staging/add/auto-uncurryodersky2016-02-181-0/+8
|\ | | | | Implement auto tupling of function arguments
| * Untuple using `def` not `val`.Martin Odersky2016-02-161-0/+8
| | | | | | | | As retronym noted on #897, `val` forces to early.
* | Reinstantiate t920Martin Odersky2016-02-171-0/+24
|/ | | | | | Got deleted by accident. Version in run has object renamed to prevent case clashes on MacOS. Version that exhibits the clash is in pending/run.
* Move test to pendingMartin Odersky2016-02-111-20/+0
| | | | | | | | | | The underlying problem on MacOS/Windows remains: We have a class `B` and an object `b` in the same scope. We used to get a conflict on `B$/b$` because we created an empty companion object for `B`. Now we get a conflict for `B/b`, because the `b` object creates to classes: `b.class` an `b$.class` and `b.class` clashes with `B.class`.
* Enable tests for old fixed issuesGuillaume Martres2016-02-096-0/+584
| | | | Fix #530, #654, #681, #684, #685
* New test files from SI 7278.Martin Odersky2016-02-091-0/+32
|
* Enforce rule that laziness is preserved when overriding.Martin Odersky2016-02-091-1/+1
|
* Disable benchmark testMartin Odersky2016-02-041-88/+0
| | | | | | | | The test checks that Scala collections perform within 10x of Java collections. That's not something we need to test for dotty. And because of the heavily parallel execution of the tests it does not always hold. This is the second time in a a month that this particular test failed on jenkins. I think we lost enough cycles on it.
* Extend testMartin Odersky2016-01-192-0/+7
| | | | | We verified that before the combination abstract/concrete for `x` also led to AMEs. So we test it here explicitly, too.
* Stop crashes because we're out of memory by disabling t7880Guillaume Martres2016-01-171-7/+0
| | | | | | | | | | | | | | | | All of our recent memory-related tests failures since https://github.com/lampepfl/dotty/pull/1030 was merged seem to be caused by t7880.scala. It tries to intentionally trigger an OutOfMemoryError, however since we don't pass -Xmx to our run tests it's possible that this we fill up the memory of our host before we reach the maximum heap size of the JVM. Ideally, we would specify a -Xmx for run tests (scalac uses 1 GB), unfortunately in the version of partest we use this is tricky because we need to set the system property "partest.java_opts". If we upgrade our partest to the latest release, we can instead specify it by setting the argument `javaOpts` of the constructor of `SuiteRunner`, see https://github.com/scala/scala-partest/commit/7c4659e1f88b410109ad3c4e7f66ae7070c6e985
* Fix ambiguity errors with polymorphic implicitsGuillaume Martres2015-11-182-0/+15
| | | | | | | | | Previously, `isAsSpecific(alt1, tp1, alt2, tp2)` did not handle having `tp2` be a polymorphic non-method type like `[A]Foo[A]`. Also update the documentation of `isAsSpecific` to account for this change, the new documentation is based on SLS § 6.26.3 but adapted to reflect the code.
* Test that private member selection on AndTypes works.Dmitry Petrashko2015-11-101-0/+17
|
* Update check fileMartin Odersky2015-11-012-5/+5
| | | | and explain why it's different now.
* Disable failing testMartin Odersky2015-11-011-2/+6
| | | | | Dotty delivers an ambiguity error. The comment in the test argues why this is OK.
* Merge pull request #835 from dotty-staging/add-more-testsodersky2015-10-223-0/+23
|\ | | | | Add more tests
| * More testsMartin Odersky2015-10-213-0/+23
| |
* | Fix tests to survive wellformedness checksMartin Odersky2015-10-221-3/+2
| |
* | Test that more than 16 lazy vals can be safely used in one object.Dmitry Petrashko2015-10-221-0/+65
|/
* Merge pull request #799 from dotty-staging/change-inferenceodersky2015-10-071-2/+1
|\ | | | | Change inference
| * Add test caseMartin Odersky2015-09-181-2/+1
| |
* | Rename collectAs -> toMartin Odersky2015-10-061-14/+14
| |
* | Tweaks to conform with API set out in #818.Martin Odersky2015-10-061-14/+14
| |
* | Bugfixes and move CollectionStrawMan1 into the correct directory.Martin Odersky2015-10-061-10/+10
| |
* | Add ArrayBuffer as another Seq class. Make iterators inspectable.Martin Odersky2015-10-062-0/+19
| |
* | Add collection strawman and its testsMartin Odersky2015-10-062-0/+219
|/ | | | This compiles only after the changes in this branch.
* Fix #791 erasedLub of two AnyVals is Object.Dmitry Petrashko2015-09-171-0/+11
|
* New phase: ExplicitSelfMartin Odersky2015-09-172-0/+21
| | | | | Makes self types explicit, if this is needed to identify a member in a select. Fixes #789.
* Enable more tests that passDmitry Petrashko2015-09-1475-0/+1581
|
* final-fields.scala: tes objects with constant final vals.Dmitry Petrashko2015-09-141-1/+4
|
* Add another testMartin Odersky2015-09-142-1/+6
| | | | | Check that calling a side effecting function returning a constant type does not get suppressed.
* Augment test fileMartin Odersky2015-09-141-0/+18
| | | | to test for propagation of constant types.
* Test behaviour of final vals.Dmitry Petrashko2015-09-142-0/+24
|
* Add testMartin Odersky2015-09-122-0/+74
| | | | Should have been added on final vals commit.
* Merge pull request #767 from dotty-staging/fix-#756-super-accessorsDmitry Petrashko2015-08-281-0/+8
|\ | | | | Fix #756 super accessors
| * Add test caseMartin Odersky2015-08-211-0/+8
| |
* | Refine refOfDef top handle repeated parametersMartin Odersky2015-08-221-0/+10
| | | | | | | | | | | | | | | | | | refOfDef is used in desugaring case classes, specifically the definition of an apply method. Here it is necessary to pass a vararg argument (x: _*) if the case class parameter is repeated. This functionality is now added to `refOfDef`. I verified that the other uses of `refOfDef` are compatible with this change. Fixes #768.
* | Merge pull request #764 from dotty-staging/mixin/forwardersodersky2015-08-221-0/+14
|\ \ | | | | | | Mixin: class defined abstract members take precedence over interface defined.
| * | Test that forwarders are correctly created.Dmitry Petrashko2015-08-211-0/+14
| |/
* / Test that fields are correctly set before super constructor is called.Dmitry Petrashko2015-08-211-0/+12
|/
* Merge pull request #758 from ↵Dmitry Petrashko2015-08-201-1/+11
|\ | | | | | | | | dotty-staging/fix-liftedTry-capturedVars-interaction Fix lift try and captured vars interaction
| * Add a local val to lifted try to make sure owners are still legal.Martin Odersky2015-08-151-1/+1
| | | | | | | | | | Checks the hypothesis that lifting a try may safely move expressions into a ValDef owned by a new temp var.
| * Fix CaputuredVars/LiftTry interaction.Martin Odersky2015-08-151-1/+11
| | | | | | | | | | | | CapturedVars introduced an assignment that could cause a try to be executed with a non-empty stack, even after LiftTry had already run. We now avoid this by introducing a temporary variable.
* | Merge pull request #760 from dotty-staging/mixin-fixesodersky2015-08-201-0/+23
|\ \ | | | | | | Fixes to scala2 Mixin
| * | test #760Dmitry Petrashko2015-08-171-0/+23
| |/
* / Test that partial functions are handled correctly.Dmitry Petrashko2015-08-171-0/+10
|/
* GetClass: get classSymbol reliablyDmitry Petrashko2015-08-131-1/+2
| | | | TermRefs do not have a classSymbol.
* Add LiftTry phaseMartin Odersky2015-08-052-0/+28
| | | | | Phase lifts tries that would be illegal because they execute on non-empty expression stacks.