Skip to content

Commit 5b6bb0b

Browse files
committed
Workaround issue scala#4449
1 parent f3f3d3c commit 5b6bb0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/scala/tasty/util/TreeAccumulator.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ abstract class TreeAccumulator[X, T <: Tasty with Singleton](val tasty: T) {
9090
case Refined(tpt, refinements) => foldTree(foldTypeTree(x, tpt), refinements)
9191
case Applied(tpt, args) => foldTypeTree(foldTypeTree(x, tpt), args)
9292
case ByName(result) => foldTypeTree(x, result)
93-
case TypeBoundsTree(lo, hi) => foldTypeTree(foldTypeTree(x, lo), hi)
9493
case Annotated(arg, annot) => foldTree(foldTypeTree(x, arg), annot)
94+
case TypeBoundsTree(lo, hi) => foldTypeTree(foldTypeTree(x, lo), hi)
9595
}
9696

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

0 commit comments

Comments
 (0)