Skip to content

Commit 77ecfea

Browse files
committed
Patch stdlib classes also when unpickling from Tasty
1 parent 18076c2 commit 77ecfea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -940,6 +940,7 @@ class TreeUnpickler(reader: TastyReader,
940940
val stats = rdr.readIndexedStats(localDummy, end)
941941
tparams ++ vparams ++ stats
942942
})
943+
defn.patchStdLibClass(cls)
943944
setSpan(start,
944945
untpd.Template(constr, mappedParents, Nil, self, lazyStats)
945946
.withType(localDummy.termRef))

0 commit comments

Comments
 (0)