Skip to content

Commit 37d348a

Browse files
committed
Add missing case for SyntheticBounds
1 parent 0a1aed2 commit 37d348a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/src/scala/tasty/reflect/TreeUtils.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ trait TreeUtils
9898
case TypeTree.ByName(result) => foldTypeTree(x, result)
9999
case TypeTree.Annotated(arg, annot) => foldTree(foldTypeTree(x, arg), annot)
100100
case TypeBoundsTree(lo, hi) => foldTypeTree(foldTypeTree(x, lo), hi)
101+
case SyntheticBounds() => x
101102
}
102103

103104
def foldOverCaseDef(x: X, tree: CaseDef)(implicit ctx: Context): X = tree match {

0 commit comments

Comments
 (0)