Skip to content

Commit 4aba4f7

Browse files
committed
Use mapConserve in UntypedTreeMap
1 parent 8377c0d commit 4aba4f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/ast/untpd.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ object untpd extends Trees.Instance[Untyped] with UntypedTreeInfo {
477477
case SymbolLit(str) =>
478478
cpy.SymbolLit(tree)(str)
479479
case InterpolatedString(id, segments) =>
480-
cpy.InterpolatedString(tree)(id, segments.map(transform(_)))
480+
cpy.InterpolatedString(tree)(id, segments.mapConserve(transform))
481481
case Function(args, body) =>
482482
cpy.Function(tree)(transform(args), transform(body))
483483
case InfixOp(left, op, right) =>

0 commit comments

Comments
 (0)