aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i1103.scala
Commit message (Collapse)AuthorAgeFilesLines
* ProtoTypes#wildApprox: fix LazyRef approximationGuillaume Martres2016-02-181-0/+5
Before this commit, the output of `wildApprox(A)` where `A <: Sys[LazyRef(A)]` was `? <: Sys[LazyRef(() => wildApprox(A))]`. This lead to infinite subtyping checks. This is fixed by always approximating a LazyRef by an unbounded wildcard. Since we only create LazyRefs when we encounter a cycle, this should be safe. Fix #1103.