aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i1401.scala
Commit message (Collapse)AuthorAgeFilesLines
* Fix #1401: Make sure all refs are forwardedMartin Odersky2016-07-211-0/+25
Faced with recursive dependencies through self types, we might have to apply `normalizeToClassRefs` to a class P with a parent that is not yet initialized (witnessed by P's parents being Nil). In that case we should still execute forwardRefs on P, but we have to wait in a suspension until P is initialized. This avoids the problem raised in #1401. I am still not quite sure why forwardRefs is needed, but it seems that asSeenFrom alone is not enough to track the dependencies in this case.