Skip to content

Commit b6cddb3

Browse files
committed
Restore paramss on unpickling
1 parent 56e37ff commit b6cddb3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -786,9 +786,10 @@ class TreeUnpickler(reader: TastyReader,
786786
ta.assignType(untpd.ValDef(sym.name.asTermName, tpt, readRhs(localCtx)), sym)
787787

788788
def DefDef(tparams: List[TypeDef], vparamss: List[List[ValDef]], tpt: Tree) =
789-
ta.assignType(
790-
untpd.DefDef(sym.name.asTermName, tparams, vparamss, tpt, readRhs(localCtx)),
791-
sym)
789+
sym.setParamssFromDefs(tparams, vparamss)
790+
ta.assignType(
791+
untpd.DefDef(sym.name.asTermName, tparams, vparamss, tpt, readRhs(localCtx)),
792+
sym)
792793

793794
def TypeDef(rhs: Tree) =
794795
ta.assignType(untpd.TypeDef(sym.name.asTypeName, rhs), sym)

0 commit comments

Comments
 (0)