aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t0674.scala
Commit message (Collapse)AuthorAgeFilesLines
* Moved previously failing tests to posMartin Odersky2015-01-181-0/+48
| | | | | 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-48/+0
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* More testsMartin Odersky2014-03-211-0/+48
Added more tests which all pass, except for tests in disabled and pending. t0694 went from pos to neg, because the kind of alias type used in t0695 is no longer supported.