Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions library/src/scala/tasty/reflect/TreeUtils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ trait TreeUtils
foldTree(foldTrees(x, stats), expr)
case If(cond, thenp, elsep) =>
foldTree(foldTree(foldTree(x, cond), thenp), elsep)
case While(cond, body) =>
foldTree(foldTree(x, cond), body)
case Lambda(meth, tpt) =>
val a = foldTree(x, meth)
tpt.fold(a)(b => foldTree(a, b))
Expand Down
1 change: 1 addition & 0 deletions tests/run-macros/tasty-extractors-3/quoted_2.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ object Test {
def f2[T >: Int <: Int](): T = ???
class Foo { type X }
val foo = new Foo { type X = String }
while (true) println()
}
}
}
Expand Down