Skip to content

Commit 44c0133

Browse files
committed
Fix test-pickling problem
1 parent f812984 commit 44c0133

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/transform/PostTyper.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,9 @@ class PostTyper extends MacroTransform with InfoTransformer { thisPhase =>
392392
case _ if tpd.exprPurity(tree) >= TreeInfo.Idempotent =>
393393
tree
394394
case _ =>
395-
val vdef = SyntheticValDef(TempResultName.fresh(), tree)
395+
val vdef = SyntheticValDef(TempResultName.fresh(), tree).withSpan(tree.span)
396396
lifted += vdef
397-
Ident(vdef.namedType)
397+
Ident(vdef.namedType).withSpan(tree.span)
398398
val pureTrees = trees.mapConserve(liftIfImpure)
399399
Block(lifted.toList, within(pureTrees))
400400
else within(trees)

0 commit comments

Comments
 (0)