Skip to content

Commit 1434496

Browse files
committed
Add missing case for SyntheticBounds
1 parent bcdc431 commit 1434496

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
@@ -105,6 +105,7 @@ trait TreeUtils
105105
case TypeTree.MatchType(boundopt, selector, cases) =>
106106
foldTypeCaseDefs(foldTypeTree(boundopt.fold(x)(foldTypeTree(x, _)), selector), cases)
107107
case TypeBoundsTree(lo, hi) => foldTypeTree(foldTypeTree(x, lo), hi)
108+
case SyntheticBounds() => x
108109
}
109110

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

0 commit comments

Comments
 (0)