Skip to content

Commit 68f6ace

Browse files
committed
Enable pickling test
Avoid unnecessary recursive types in the presence of LazyRef.
1 parent b987eeb commit 68f6ace

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2924,7 +2924,7 @@ object Types {
29242924
tp match {
29252925
case tp: TypeRef => apply(x, tp.prefix)
29262926
case tp: RecThis => RecType.this eq tp.binder
2927-
case tp: LazyRef => true // To be safe, assume a reference exists
2927+
case tp: LazyRef => this(x, tp.ref)
29282928
case _ => foldOver(x, tp)
29292929
}
29302930
}

compiler/test/dotc/pos-test-pickling.blacklist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,3 @@ i9793.scala
6060

6161
# lazy_implicit symbol has different position after pickling
6262
i8182.scala
63-

0 commit comments

Comments
 (0)