aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i1891.scala
Commit message (Collapse)AuthorAgeFilesLines
* Fix #1891: Don't add redundant constraintMartin Odersky2017-01-101-0/+11
Before adding a constraint, make sure there is no way the two types are already in a subtype relation. Adding redundant constraints is problematic because we might introduce cycles. See i1891.scala for a test.