Skip to content

Commit db4d934

Browse files
committed
Make TypeAccumulators follow LazyRefs
TypeMaps do the same, so it is logical, and helps prevent subtle errors as when we mispredicted whether a RecType contains references that point to it.
1 parent e38541b commit db4d934

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/dotty/tools/dotc/core/Types.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3708,6 +3708,9 @@ object Types {
37083708
case tp: JavaArrayType =>
37093709
this(x, tp.elemType)
37103710

3711+
case tp: LazyRef =>
3712+
this(x, tp.ref)
3713+
37113714
case tp: ProtoType =>
37123715
tp.fold(x, this)
37133716

0 commit comments

Comments
 (0)