Skip to content

Commit 6b0350e

Browse files
committed
fix missing case TypedSplice in UntypedTreeMap
1 parent df22149 commit 6b0350e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,8 @@ object untpd extends Trees.Instance[Untyped] with UntypedTreeInfo {
517517
cpy.ContextBounds(tree)(transformSub(bounds), transform(cxBounds))
518518
case PatDef(mods, pats, tpt, rhs) =>
519519
cpy.PatDef(tree)(mods, transform(pats), transform(tpt), transform(rhs))
520+
case TypedSplice(_) =>
521+
tree
520522
case _ =>
521523
super.transform(tree)
522524
}

0 commit comments

Comments
 (0)