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.
return
1 parent 1f523ea commit 03dca96Copy full SHA for 03dca96
library/src/scala/tasty/util/ShowSourceCode.scala
@@ -389,7 +389,7 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
389
}
390
391
case Term.Return(expr) =>
392
- this += "}"
+ this += "return "
393
printTree(expr)
394
395
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