aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run
Commit message (Collapse)AuthorAgeFilesLines
* Add testsOlivier Blanvillain2017-04-062-35/+0
| | | | | | - t7296 & case-class-23 are moved out of pending - 1938 tests productElement > 23
* More tests and other odds and endMartin Odersky2016-12-141-0/+8
| | | | | | - Add tests that work to pos/neg, tests that don't work yet to pending/pos/neg. - Also, change .gitignore to allow for a local directory. - Also add a draft page to the docs.
* Merge pull request #1469 from dotty-staging/fix-scala.Dynamicodersky2016-09-1620-297/+0
|\ | | | | Fixes for scala.Dynamic
| * Enable scala.Dynamic pending/untried tests.Nicolas Stucki2016-09-0512-174/+0
| |
| * Fix #1474: Fix applies to applyDynamic.Nicolas Stucki2016-09-055-110/+0
| |
| * Fix #1470: Fix dynamic selection in presence of inaccessible members.Nicolas Stucki2016-09-053-13/+0
| |
* | Add missing check file.Martin Odersky2016-09-141-2/+0
| |
* | Add some run testsMartin Odersky2016-09-1411-207/+26
|/
* Fix eta expansion for deeply curried methodsMartin Odersky2016-08-172-133/+0
| | | | | | Eta expansion yielded incorrect result if the eta expanded method has more than one parameter sections and the expected result type is a unary function type. In that case a postfix `_' needs to be appended.
* Merge pull request #1075 from dotty-staging/fix-t920-testDmitry Petrashko2016-02-161-0/+25
|\ | | | | Drop empty companion objects
| * Move test to pendingMartin Odersky2016-02-111-0/+25
| | | | | | | | | | | | | | | | | | | | 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`.
* | Add test case for #645Martin Odersky2016-02-121-15/+0
|/
* Enable tests for old fixed issuesGuillaume Martres2016-02-096-584/+0
| | | | Fix #530, #654, #681, #684, #685
* Stop crashes because we're out of memory by disabling t7880Guillaume Martres2016-01-171-0/+8
| | | | | | | | | | | | | | | | 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
* More testsMartin Odersky2015-10-211-0/+22
|
* Enable more tests that passDmitry Petrashko2015-09-1475-1581/+0
|
* Revert "Workaround #742 and add a test for it."Martin Odersky2015-08-051-7/+0
| | | | This reverts commit a43d39ad719978fbb36663f336c1c7cd2c4da1e0.
* Merge pull request #735 from dotty-staging/ycheck-methodsodersky2015-08-0496-4440/+7
|\ | | | | Ycheck that methods defined in ClassInfo exist in tree.
| * Workaround #742 and add a test for it.Dmitry Petrashko2015-07-281-0/+7
| | | | | | | | | | Making a correct fix could take some time, and I want to find other issues before I start working on this one.
| * Enable 61 tests that succeed.Dmitry Petrashko2015-07-1395-4440/+0
| |
* | Implement emotion of annotations in GenBCode.Dmitry Petrashko2015-07-141-12/+0
|/ | | | Fixes #688
* Drop Module flag from lifted symbols.Martin Odersky2015-06-261-19/+0
| | | | | | | Reason: A lifted module is no longer a module (i.e. singleton object) in the scope to which it is lifted. Fixes #689.
* Fix erasure of Thistypes.Martin Odersky2015-06-262-59/+0
| | | | | | | | | | Thistypes erased to the underlying class. This is wrong. When seen as part of some other type, a ThisType has to erase to the erasure of the underlying type (i.e. the erasure if the selftype of the class). unittest-collections.scala failed with a MethodNotFound error because the erasure was computed incorrectly. On the other hand, a tree with a ThisType type, should keep the type, analogous to a tree with a TermRef type.
* Merge pull request #677 from alexander-myltsev/am-579-implement_class_ofDmitry Petrashko2015-06-232-54/+0
|\ | | | | Closes #579 Implement mini-phase for classOf[T]
| * Closes #579 Implement mini-phase for classOf[T]Alexander Myltsev2015-06-222-54/+0
| |
* | Merge pull request #667 from dotty-staging/fix/#646-array-additionodersky2015-06-222-15/+0
|\ \ | | | | | | Fix/#646 array addition
| * | Do not check for ambiguous implicits in viewExistsMartin Odersky2015-06-222-15/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously `viewExists(X, Y)` failed if there were ambiguous implicit conversions from X to Y. This is too fragile, as demonstrated by test case run/array-addition.scala. Here, the `genericArrayOps` implicit was not inserted because its result type `Array[?T]` was deemed to be incompatible with `? { +: : ? }`. It was incompatible because there were multiple implicits that added :+ to arrays of various element types. But once `genericArrayOps` gets applied, the type parameter `?T` of the array result is fixed, and the ambuity goes away. The scenario shows that we should not test for ambiguous implicits in viewExists. Such a test is fragile because it depends on the progress of type inference when the test is made. It's preferable to just test for any implicit conversion to exist and to check for ambiguities later, when the implicit conversion is actually applied. This has also the potential of speeding up implicit search in situations where `viewExists` is called often (e.g. when coupled with overloading resolution).
* | | Merge pull request #675 from dotty-staging/fix/#652-erase-constructorsodersky2015-06-228-227/+0
|\ \ \ | |/ / |/| | Fix/#652 erase constructors
| * | Map outer fields to parameters in primary constructorMartin Odersky2015-06-204-161/+0
| | | | | | | | | | | | | | | | | | Previously this was only done in secondary constructors; need to do it in primary constructor as well to avoid "reference to this before super" problems.
| * | Map proxy references in constructors to parametersMartin Odersky2015-06-202-34/+0
| | | | | | | | | | | | | | | Proxy references in constructors can't be left as fields because they can happen before the supercall.
| * | Map outer accessors to outer paramatersMartin Odersky2015-06-192-32/+0
| |/ | | | | | | | | Map references to outer accessors in secondary constructors to outer parameters. This was the second source of "reference to this before super call" errors.
* | Merge pull request #668 from lampepfl/fix/#650-self-typesodersky2015-06-222-161/+0
|\ \ | | | | | | Fix checking whether types are instantiable.
| * | Fix checking whether types are instantiable.Martin Odersky2015-06-192-161/+0
| | | | | | | | | | | | | | | The logic for checking aginst the self type was wrong, as demonstrated by pos/checkInstantiable.scala.
* | | Merge pull request #674 from dotty-staging/fix/#655-eta-expansionodersky2015-06-212-20/+0
|\ \ \ | |_|/ |/| | Fix/#655 eta expansion
| * | Fix problem in eta expansion.Martin Odersky2015-06-192-20/+0
| | | | | | | | | | | | Failure to do a widen caused by-name parameters to go undetected.
* | | Merge pull request #669 from dotty-staging/fix-patmat-seqodersky2015-06-194-56/+0
|\ \ \ | |/ / |/| | Fix sequence matching.
| * | Enable t5629b.Dmitry Petrashko2015-06-192-46/+0
| | | | | | | | | | | | Was also fixed in this PR.
| * | Fix wrong test in PatMat.Dmitry Petrashko2015-06-192-10/+0
| | | | | | | | | | | | | | | Call drop method directly if class derives from sequence. I do not understand how callRuntime works in scalac. Calling this method requires implicit search.
* | | Take expected result type into account more often for overloading resolutionMartin Odersky2015-06-191-108/+0
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, the expected result type of a FunProto type was ignored and taken into account only in case of ambiguities. arrayclone-new.scala shows that this is not enough. In a case like val x: Array[Byte] = Array(1, 2) we typed 1, 2 to be Int, so overloading resulution would give the Array.apply of type (Int, Int*)Array[Int]. But that's a dead end, since Array[Int] is not a subtype of Array[Byte]. This commit proposes the following modified rule for overloading resulution: A method alternative is applicable if ... (as before), and if its result type is copmpatible with the expected type of the method application. The commit does not pre-select alternatives based on comparing with the expected result type. I tried that but it slowed down typechecking by a factor of at least 4. Instead, we proceed as usual, ignoring the result type except in case of ambiguities, but check whether the result of overloading resolution has a compatible result type. If that's not the case, we filter all alternatives for result type compatibility and try again.
* | Merge pull request #663 from dotty-staging/fix/#643-scala2-noinitsDmitry Petrashko2015-06-192-181/+0
|\ \ | | | | | | Fix #643 - Scala2 unpickling now sets NoInits flag for interfaces.
| * | Avoid spurious StaleSymbol error in <refinement> membersMartin Odersky2015-06-162-181/+0
| |/ | | | | | | | | | | | | Refinement classes and their members could give spurious stale symbol errors if the symbol is loaded in a different run than the classfile containing it. The problem is that refinement classes do not form part of the scope of their owners. The fix assumes that refinement classes are always "stillValid".
* | Merge pull request #664 from dotty-staging/more-testsodersky2015-06-181042-13381/+0
|\ \ | |/ |/| Enable tests that pass, move macro tests to disabled.
| * Move tests that have " macro" or "reify" to disabled.Dmitry Petrashko2015-06-15964-10844/+0
| |
| * Enable tests that succeed.Dmitry Petrashko2015-06-1578-2537/+0
| |
* | Fix #651 Generalize criterion for isOpAssignMartin Odersky2015-06-152-354/+0
|/ | | | | Methods like + can have multiple parameters. In that case += also takes multiple parameters.
* Fix bridge creation for value classesGuillaume Martres2015-05-233-44/+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-2321-415/+0
|
* Remove tests from pending.Dmitry Petrashko2015-05-22695-18871/+0
|
* Disable byNameVarargs. Kills JVM.Dmitry Petrashko2015-05-201-0/+27
|
* Use LegacyApp in run tests.Dmitry Petrashko2015-05-13902-959/+902
|