aboutsummaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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/+0
|
* Move test that fails again to disabled.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.
* | Uncomment testsMartin Odersky2015-05-271-2/+2
| |
* | Introduce harmonization of numeric argumentsMartin Odersky2015-05-271-0/+28
|/ | | | | | | | | | | | | | Harmonization is Dotty's alternative to Scala 2's notion of weak conformance. It is less powerful but also less entangled with the core type system. The idea is that in some specific contexts trees that all have primitive numeric types will be converted as necessary so that they all have the same numeric type. These tree sets are: - the two branches of an if - the alternatives of a match - the body together with the catch blocks of a try - the arguments of a vararg parameter Examples are in the test file, harmonize.scala.
* New pos testsMartin Odersky2015-05-275-0/+62
| | | | Some of them were moved from disabled after verifiying that they compile now.
* Categorize disabled tests into pos/runMartin Odersky2015-05-275-0/+0
|
* Disable failing testMartin Odersky2015-05-272-0/+0
|
* Disabled two failing testsMartin Odersky2015-05-262-0/+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.
* Merge pull request #585 from dotty-staging/fix/collection-relatedodersky2015-05-253-0/+117
|\ | | | | Improvements to higher-kinded types
| * Calibrate findMember logging thresholds and test caseMartin Odersky2015-05-211-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | Adds IterableSelfRec.scala which caused lockup of the compiler. After a lot of work the problem was determined to be polyomial or exponential behavior of the compiler when executing findMember on refined types that contain several bindings where the resutling & causes a recursive invokation of findMember with the same name. We do have a stop for this now, but if the stop comes too late the runtime will grow very fast. Problem addressed by kiccking in earlier with the stopping logic.
| * Add test case for higher-kinded operations on collectionsMartin Odersky2015-05-211-0/+52
| | | | | | | | The test case that caused all previous commits in this branch.
| * Make normalizeToRef survive annotated typesMartin Odersky2015-05-211-1/+1
| | | | | | | | Did not handle this case before.
| * Disallow {...} arguments for annotationsMartin Odersky2015-05-211-0/+13
| | | | | | | | | | This mimics scalac's behavior (but not the official syntax; in fact the official syntax seems to be ambiguous.
* | Fix bridge creation for value classesGuillaume Martres2015-05-233-1/+0
| | | | | | | | | | | | | | | | | | 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-2322-6/+7
| |
* | Remove tests from pending.Dmitry Petrashko2015-05-22695-18871/+0
| |
* | 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-0/+0
|
* Fix null unboxing of primitives (fixes #582)Guillaume Martres2015-05-183-11/+23
| | | | | Erasure#isUnbox was incorrect: the unbox methods are defined on the value classes, not the boxed classes.
* As i566 shows, it is possible to have a package as prefix, a packageMartin Odersky2015-05-151-0/+5
| | | | | | | | | | object as owner and be followed by type arguments: reflect.classTag[T] expands to reflect.`package`.classTag[T]
* Fix i499 test. fails due to #546Dmitry Petrashko2015-05-131-4/+3
|
* Use LegacyApp in run tests.Dmitry Petrashko2015-05-13902-959/+902
|
* Running rewrite tool on run tests.Dmitry Petrashko2015-05-13731-1786/+2131
|
* Run tests as they were in scala.Dmitry Petrashko2015-05-123383-0/+92963
|
* More robust partest/test switching for concurrent sbt instancesvsalvis2015-05-121-0/+0
|
* Run tests for partestvsalvis2015-05-124-0/+13
|
* Merge pull request #551 from dotty-staging/fix/#547-overloaded-varargsDmitry Petrashko2015-05-091-0/+4
|\ | | | | Fix #547: Vararg overload
| * Fix #547: Vararg overloadMartin Odersky2015-05-081-0/+4
| | | | | | | | | | When comparing to types in isAsSpecific, onvert repeated parameters to their underlying type only if both types are vararg methods. This mimics scalac behavior.
* | Merge pull request #543 from dotty-staging/compile-dottyodersky2015-05-091-0/+3
|\ \ | | | | | | Make dotty compile backend.
| * | Drop the requirement that extractors with `get` must implement ProductMartin Odersky2015-05-081-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | We used to require that the result type of an extractor `get` is a product, or else the type of the `get` itself would be taken as the result type of the unapply. This is now relaxed so that we automatically select with _1, _2, ... as soon as there are multiple argument patterns, and (1) the result type is not a Seq, (2) the number of consecutive product conselectors matches the number of arguments.
| * | Fix #536 - only load member classes of classes that are currently compiled.Martin Odersky2015-05-071-0/+3
| | | | | | | | | | | | | | | | | | | | | It seems wasteful to load the member classes even of classes that are not currently compiled. It also makes us vulnerable to any misinterpretation of Java file formats. In th particular case of #536, we parsed a class an anonymous Collection$1 which was referring to the type parameter of its enclosing class, but was not diagnosed as an inner class of the enclosing class.
* | | Merge pull request #542 from dotty-staging/fix/#540-unbounded-generic-arrayDmitry Petrashko2015-05-081-0/+6
|\ \ \ | |_|/ |/| | Fix #540 - unbounded array test for wildcard array arguments
| * | Fix #540 - unbounded array test for wildcard array argumentsMartin Odersky2015-05-061-0/+6
| |/ | | | | | | | | | | Arrays with wildcard arguments such as Array[_ <: Foo] where Foo is a universal trait are now diagnosed as unbounded generic arrays and are erased to Object.
* / Drop the requirement that extractors with `get` must implement ProductMartin Odersky2015-05-051-0/+32
|/ | | | | | | | | We used to require that the result type of an extractor `get` is a product, or else the type of the `get` itself would be taken as the result type of the unapply. This is now relaxed so that we automatically select with _1, _2, ... as soon as there are multiple argument patterns, and (1) the result type is not a Seq, (2) the number of consecutive product conselectors matches the number of arguments.
* Merge pull request #534 from dotty-staging/fix/computeDenotodersky2015-05-051-0/+6
|\ | | | | Fix #518 - compute denotations
| * Add test caseMartin Odersky2015-05-041-0/+6
| | | | | | | | Tests #518.
* | Merge pull request #509 from dotty-staging/add/expandSAMsDmitry Petrashko2015-05-044-7/+89
|\ \ | | | | | | Expand SAM closures to anonymous classes if needed
| * | Failing testMartin Odersky2015-05-021-0/+9
| | | | | | | | | | | | The test included here fails in backend.