aboutsummaryrefslogtreecommitdiff
path: root/tests/pending
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* 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
|
* Merge pull request #526 from dotty-staging/fix/#522odersky2015-05-032-20/+0
|\ | | | | Fix #522.
| * Moved tests from pendingMartin Odersky2015-05-032-20/+0
| |
* | Enable test strip-tvars-for-lubbasetypes.scalaGuillaume Martres2015-05-031-25/+0
|/ | | | | The test had to be slightly modified because of dotty's stricter checking of type bounds validity, see #525 where this was discussed.
* Enable pending pos tests related to value classesGuillaume Martres2015-05-015-76/+0
| | | | | | | | | | | | | Each test needs to have its own package because pos_all will try to compile the whole valueclasses directory at once. The remaining tests with "extends AnyVal" in tests/pending/pos are related to separate compilation, except for: - t6482.scala and t7022.scala which were fixed by https://github.com/scala/scala/pull/1468 in scalac and seem to trigger a similar bug in FullParameterization - strip-tvars-for-lubbasetypes.scala which was fixed by https://github.com/scala/scala/pull/1758 in scalac
* Ensure spaces after `if` in Dotty tests.Dmitry Petrashko2015-04-096-7/+7
|
* Add spaces around + in tests.Dmitry Petrashko2015-04-097-15/+15
|
* Remove trailing spaces in Dotty tests.Dmitry Petrashko2015-04-097-28/+28
|
* Replace tabs with 4 spaces in Dotty tests.Dmitry Petrashko2015-04-0918-59/+59
|
* add/strictMartin Odersky2015-03-132-49/+0
| | | | | | | | | | | Add -strict option to do some type checks that are encessary to ensure type soundness, but are stricter than what Scala 2.x enforces. The first such test is the "pattern cannot be uniquely instantiated" problem where we reject a non-variant case subclass of a covariant superclass in a pattern match. The error is now only issued in -struct mode, otherwise it will be a warning. We might move more tests into the same category. This should help the transition.
* Java methods: JavaMethodType instead of MethodType, convert Object to AnyOndrej Lhotak2015-02-072-10/+0
| | | | | | | | | | Fixes two bugs needed for java-override test: Namer was creating a MethodType instead of a JavaMethodType even though the JavaDefined flag was set on the DefDef. Following Scalac, Namer needs to convert Java method parameters of type j.l.Object to s.Any.
* New failing testMartin Odersky2015-02-072-0/+10
| | | | As noticed by @retronym, Any and Object are not identified when matching Scala and Java methods. I believe this is because the Java method does not have the Java flag set. @olhotak can you take a look?
* Test reorgMartin Odersky2015-02-0715-210/+1
|
* Fixes handling of op-assignments for polymorphic apply/update.Martin Odersky2015-02-071-15/+0
| | | | See t3252 for a test case.
* Merge pull request #338 from dotty-staging/fix/t3152-findMemberodersky2015-01-318-124/+0
|\ | | | | Fix/t3152 find member
| * Use normnalized type to report type errors.Martin Odersky2015-01-278-124/+0
| | | | | | | | | | | | | | | | | | Without it, we get strange error messages like found: (implicit X)Y requred: Z when the problem is really that Y is not a subtype of Z.
* | Merge pull request #331 from dotty-staging/fix/refined-subtypingodersky2015-01-319-95/+13
|\ \ | | | | | | Fix/refined subtyping
| * | Fixed problem with ensureSingletonMartin Odersky2015-01-281-16/+0
| | | | | | | | | | | | | | | Need to also ensure that the singleton is stable. This makes compound.scala pass.
| * | Cleanups prompted by reviews.Martin Odersky2015-01-281-1/+4
| |/
| * Moved previously failing tests to posMartin Odersky2015-01-185-130/+0
| | | | | | | | | | GADTs now work again (they stopped workign when we went to the inductive satisfiability checks). The deep for expression also works, even with some more levels added.
| * Simplify and fix bounds propagation in constraints.Martin Odersky2015-01-081-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous scheme did not ensure that transitivity was eliminated. Example scenario: We have in the constraint P <: Q for constrained variables P, Q and add Q <: T Previous propagation added the constraint and then tested whether the bounds of all variables were satisfiable. For Q we test P <: T but that is true because P <: Q and we already added the constraint Q <: T. So we fail to add the constraint P <: T, and transitivity is no longer eliminated. Instead we now test the new bounds (in this case P <: T) *before* adding the new constraint Q <: T. This is also simpler than the previous scheme.
| * New scheme for subtyping refined types.Martin Odersky2015-01-081-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Instead of rebasing, use the DeBrujn level of a RefiendThis. - Make sure lower type is a singleton by skolemizing it if necessary. - Do the correct rebinding of the upper type's RefinedThis. Remarks: - The new scheme discovered quite a lot of errors which are mostly fixded in other commits of this branch. i0268 (GADT matching) still does not work, moved to pending. - Some optimizations are currently missing: (1) fast path refined subtyping (2) faster operations for substituting refined thistypes which explot the fact that RefinedThis is relatively rare.
| * Reorg of subtyping.Martin Odersky2015-01-012-0/+14
| | | | | | | | Plus, RefinedThis gets a second parameter, `level`. This will replace the first one in due time.
| * test reorgMartin Odersky2014-12-214-20/+3
| | | | | | | | Moved working tests to pos, annotated non-working ones.
* | Merge pull request #313 from dotty-staging/more-testsDmitry Petrashko2015-01-0913-333/+2
|\| | | | | More tests
| * tests reorgsMartin Odersky2014-12-215-73/+2
| | | | | | | | Move some tests into proper slots + comments what they are.
| * Don't emit copy method for case classes with repeated parameters.Martin Odersky2014-12-201-7/+0
| | | | | | | | | | | | | | | | scalac has the same restriction. The reason is that we do not have a means to specify a sequence-valued default for a vararg parameter. It would be nice if we could, but this requires a more substantial development effort.
| * New passing tests.Martin Odersky2014-12-191-3/+0
| |
| * Harden implicit scope computation against CyclicReference errors.Martin Odersky2014-12-191-51/+0
| |
| * Avoid name clashes when generating synthetic companion objects.Martin Odersky2014-12-191-30/+0
| |
| * Test re-org.Martin Odersky2014-12-193-162/+0
| | | | | | | | Moved some working test to pos. I wonder why they were in pending? They did work for me.
| * Fix NoCyclicReference testMartin Odersky2014-12-191-7/+0
| | | | | | | | | | | | The problem was that, unlike a classDefSig, a higher-kinded typeDefSig did not get a preset info with its type parameters. So any type-application of the defined type in its bounds would fail.
* | Merge pull request #317 from dotty-staging/fix/java-varargsDmitry Petrashko2015-01-081-23/+0
|\ \ | | | | | | Fix/java varargs
| * | Fix passing : _* arguments to Java methodsMartin Odersky2014-12-211-23/+0
| |/ | | | | | | | | Arguments of the form (xs: _*) which are passed to Java methods need to be converted to arrays, not sequences.
* / Allow for varargs passed to Java annotation constructors.Martin Odersky2014-12-191-5/+0
|/
* move failing tests from tests/untried/pos to tests/pending/posSamuel Gruetter2014-12-16494-0/+9309
|
* Fixes in TypeComparer for RefinedTypes.Martin Odersky2014-11-242-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous scheme did not propagate bounds correctly. More generally, given a comparison T { X <: A } <: U { X <: B } it would errenously decompose this to T <: U, A <: B But we really need to check whether the total constraint for X in T { X <: A } subsumes the total constraint for X in T { X <: B } The new scheme propagates only if the binding in the lower type is an alias. E.g. T { X = A } <: Y { X <: B } decomposes to T { A = A } <: U, A <: B The change uncovered another bug, where in the slow path we too a member relative to a refined type; We need to "narrow" the type to a RefinedThis instead. (See use of "narrow" in TypeComparer). That change uncovered a third bug concerning the underlying type of a RefinedThis. The last bug was fixed in a previous commit (84f32cd814f2e07725b6ad1f6bff23d4ee38c397). Two tests (1048, 1843) which were pos tests for scalac but failed compling in dotc have changed their status and location. They typecheck now, but fail later. They have been moved to pending. There's a lot of diagnostic code in TypeComparer to figure out the various problems. I left it in to be able to come back to the commit in case there are more problems. The checks and diagnostics will be removed in a subsequent commit.
* Moved pending tests that work into pos and neg.Martin Odersky2014-11-179-155/+0
| | | | | | | One test (t2613) required lifting a hard recursion limit in findMember (used for debug only, will be removed in the future). The same test also requires -Yno-deep-subtypes to be reset, so it's in pos_special instead of pos.
* Fixes problem exhibited by ensuring.scalaMartin Odersky2014-11-131-5/+0
| | | | | Need to account for the possibility that function arguments are wrapped in braces.
* LambdaLift checks now explicitly for references to labels outside scope.Martin Odersky2014-10-261-0/+10
| | | | | Nested methods cannot refer to labels in theior environment. Needs a fix in TailCalls. Moved failing test to pending.
* New testsMartin Odersky2014-10-123-0/+53
|
* Bring back blockescapes test...Martin Odersky2014-09-061-11/+0
| | | | ... by reverting a premature optimization in Erasure.
* Partially reverting of 08c6eacaMartin Odersky2014-09-053-0/+28
| | | | | | | | | | | | | | | Partial revert of 08c6eaca "this type is a term ref to the source module". The problem with doing this is that it introduces spurious outer references. An inner module that contains self referenves always needs the directly enclosing class. The revert avoids this dependency by making ThisTypes always point to TypeRefs. Several other changes were necessary to make the builds pass: TypeRefs had to get prefixes after erasure so that they can be reloaded. Symbols of such typerefs had to be retrieved without forcing a denotation. One test (blockescapes.scala) fails and is moved to pending, awaiting further resolution. Also two other new tests in pending which currently fail (and have failed before).
* Fix to rewire typesMartin Odersky2014-07-171-0/+3
| | | | | | | t6574 has a new test where we produce identical code in an if-then-else. This broke the rewiring logic before, and is fixed now. Also, more comments and test cases.