Skip to content

Commit f742d28

Browse files
committed
Add missing span to inline expansion
1 parent 0cca3fa commit f742d28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class PickleQuotes extends MacroTransform {
115115
holeContents += content
116116
val holeType = getPicklableHoleType(tree.tpe, stagedClasses)
117117
val hole = untpd.cpy.Hole(tree)(content = EmptyTree).withType(holeType)
118-
cpy.Inlined(tree)(EmptyTree, Nil, hole)
118+
Inlined(EmptyTree, Nil, hole).withSpan(tree.span)
119119
case tree: DefTree =>
120120
if tree.symbol.isClass then
121121
stagedClasses += tree.symbol

0 commit comments

Comments
 (0)