We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8390432 + 03dca96 commit e3960aeCopy full SHA for e3960ae
library/src/scala/tasty/util/ShowSourceCode.scala
@@ -395,7 +395,7 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
395
}
396
397
case Term.Return(expr) =>
398
- this += "}"
+ this += "return "
399
printTree(expr)
400
401
case Term.Repeated(elems) =>
tests/pos/t3869.decompiled
@@ -0,0 +1,7 @@
1
+/** Decompiled from out/posTestFromTasty/pos/t3869/Test.class */
2
+object Test {
3
+ def f: scala.Unit = try return () finally while (true) ()
4
+ def main(args: scala.Array[scala.Predef.String]): scala.Unit = {
5
+ Test.f
6
+ }
7
+}
0 commit comments