aboutsummaryrefslogtreecommitdiff
path: root/tests/run
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Update t6260-delambdafy.check to account for change in lambda ↵Dmitry Petrashko2015-06-021-0/+1
| | | | | | | | generation" This reverts commit cafd71af4902c76561f27a479c14e53729600bb9. For the future refference: tests and checkfiles should be modified only after carefull thought. Otherwise our tests will stop indicating the correct behaviour.
* Revert "Avoid static initialization deadlock in run tests."Martin Odersky2015-06-015-34/+23
| | | | This reverts commit 8f90105dc4e62e78d53b385df1b2eb29f2855183.
* Update t6260-delambdafy.check to account for change in lambda generationGuillaume Martres2015-05-301-1/+0
|
* Avoid static initialization deadlock in run tests.Guillaume Martres2015-05-305-23/+34
| | | | | See https://github.com/lampepfl/dotty/pull/624#issuecomment-107064519 for a lengthy explanation.
* Bring back disabled test.Martin Odersky2015-05-292-0/+26
|
* Revert "Fix #580: use isContainedIn to support cases where the enclosing ↵Martin Odersky2015-05-292-26/+0
| | | | | | class is also the top-level class" This reverts commit 6898d2c296326779d373ef0e0b84e4451550120a.
* Merge pull request #611 from dotty-staging/supercalls-traits-testDmitry Petrashko2015-05-282-0/+56
|\ | | | | Add a test for supercalls in traits.
| * Extended test case.Martin Odersky2015-05-271-0/+10
| | | | | | | | Also added non-unit fields and a class that directly implements two traits with the same fields.
| * workaround https://issues.scala-lang.org/browse/SI-7666Dmitry Petrashko2015-05-271-5/+11
| |
| * Add super calls to trait initialization test)Dmitry Petrashko2015-05-271-3/+3
| |
| * Add a test for trait initialization.Dmitry Petrashko2015-05-271-0/+25
| |
| * Add a test that tests supercalls in traits.Dmitry Petrashko2015-05-271-0/+15
| |
* | ParamForwarding: do not require param accessors to be private[this]Guillaume Martres2015-05-282-0/+105
|/ | | | | | | | | | Also mark the forwarder as Stable otherwise we get a RefChecks error. This fixes #608. Note that we do less parameter forwarding than scalac. See for example D and Y in tests/run/paramForwarding.scala which don't get their own local fields in scalac but do in dotty.
* Disable failing testMartin Odersky2015-05-272-24/+0
|
* Disabled two failing testsMartin Odersky2015-05-262-46/+0
| | | | | | Both tests fail with the same error: "Cannot create object because protected[this] newBuilder is not implemented". Not clear why partests claim to succeed here.
* Fix bridge creation for value classesGuillaume Martres2015-05-232-0/+43
| | | | | | | | | As the comment in the code says: "In general, a bridge is needed when the signature of the closure method after Erasure contains an ErasedValueType but the corresponding type in the functional interface is not an ErasedValueType." So we need to check if _at least one_ of the type needs to be adapted, not if _all of them_ need to, the use of "forall" was an error.
* Add some run tests related to value classesGuillaume Martres2015-05-2320-0/+416
|
* Enable 440 run tests that pass.Dmitry Petrashko2015-05-22698-0/+18952
| | | | Note that some of them may pass due to several bugs that interfere.
* Mixin: fix the initialization of traitsGuillaume Martres2015-05-212-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this commit, the following code: trait Hello { println("Hello") val x: Int = 1 println("World") } Became: <trait> trait Hello extends Object { def <init>(): Hello = { { () } this } <accessor> def x(): Int protected def initial$x(): Int = { println("Hello") 1 } } Notice that the initialization statements after the last getter were missing, this is now fixed: <trait> trait Hello extends Object { def <init>(): Hello = { { println("World") () } this } <accessor> def x(): Int protected def initial$x(): Int = { println("Hello") 1 } }
* Fix #580: use isContainedIn to support cases where the enclosing class is ↵Guillaume Martres2015-05-212-0/+26
| | | | also the top-level class
* Disable byNameVarargs. Kills JVM.Dmitry Petrashko2015-05-201-27/+0
|
* Fix null unboxing of primitives (fixes #582)Guillaume Martres2015-05-182-0/+23
| | | | | Erasure#isUnbox was incorrect: the unbox methods are defined on the value classes, not the boxed classes.
* Fix i499 test. fails due to #546Dmitry Petrashko2015-05-131-4/+3
|
* Run tests for partestvsalvis2015-05-124-0/+13
|
* Add tests for #499Dmitry Petrashko2015-04-301-0/+28