Skip to content

Commit ceae7da

Browse files
committed
Fix printing return
1 parent d30d374 commit ceae7da

File tree

3 files changed

+8
-22
lines changed

3 files changed

+8
-22
lines changed

compiler/test/dotty/tools/dotc/FromTastyTests.scala

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ class FromTastyTests extends ParallelTesting {
246246
"i518",
247247
"i530-import-symbolic",
248248
"i583a",
249-
"i743",
250249
"i801",
251250
"i884",
252251
"i938",
@@ -280,7 +279,6 @@ class FromTastyTests extends ParallelTesting {
280279
"Labels",
281280
"lambdalift-1",
282281
"lazyValsSepComp",
283-
"list-optim-check",
284282
"macro-deprecate-dont-touch-backquotedidents",
285283
"Meter",
286284
"michel2",
@@ -289,7 +287,6 @@ class FromTastyTests extends ParallelTesting {
289287
"Monoid",
290288
"nameddefaults",
291289
"NoCyclicReference",
292-
"nonlocal-unchecked",
293290
"opassign",
294291
"Orderings",
295292
"overloaddefault",
@@ -338,7 +335,6 @@ class FromTastyTests extends ParallelTesting {
338335
"spec-simple",
339336
"spec-sparsearray-old",
340337
"spec-super",
341-
"spec-t3497",
342338
"spec-traits",
343339
"spliceTest",
344340
"spurious-overload",
@@ -369,7 +365,6 @@ class FromTastyTests extends ParallelTesting {
369365
"t1164",
370366
"t1168",
371367
"t1208",
372-
"t121",
373368
"t1236",
374369
"t1237",
375370
"t1260",
@@ -435,7 +430,6 @@ class FromTastyTests extends ParallelTesting {
435430
"t3374",
436431
"t3384",
437432
"t3430",
438-
"t348plus",
439433
"t3528",
440434
"t3560",
441435
"t3570",
@@ -446,7 +440,6 @@ class FromTastyTests extends ParallelTesting {
446440
"t3836",
447441
"t3862",
448442
"t3866",
449-
"t3869",
450443
"t3960",
451444
"t3972",
452445
"t4018",
@@ -477,7 +470,6 @@ class FromTastyTests extends ParallelTesting {
477470
"t5406",
478471
"t5508",
479472
"t5577",
480-
"t566",
481473
"t5720-ownerous",
482474
"t5727",
483475
"t573",
@@ -549,7 +541,6 @@ class FromTastyTests extends ParallelTesting {
549541
"t8177a",
550542
"t8177g",
551543
"t8207",
552-
"t8315",
553544
"t8315b",
554545
"tcpoly_infer_easy",
555546
"tcpoly_infer_explicit_tuple_wrapper",
@@ -580,7 +571,6 @@ class FromTastyTests extends ParallelTesting {
580571
"unapplyComplex",
581572
"unapplyContexts2",
582573
"unapplyGeneric",
583-
"unchecked-a",
584574
"unicode-decode",
585575
"vararg-pattern",
586576
"varargs",
@@ -742,7 +732,6 @@ class FromTastyTests extends ParallelTesting {
742732
"flat-flat-flat",
743733
"forwarder",
744734
"function-arity",
745-
"future-flatmap-exec-count",
746735
"genericValueClass",
747736
"getclass",
748737
"getClassTest-valueClass",
@@ -821,8 +810,6 @@ class FromTastyTests extends ParallelTesting {
821810
"mixin-primitive-on-generic-5",
822811
"mutable-treeset",
823812
"no-useless-forwarders",
824-
"nonlocalreturn",
825-
"nonLocalReturns",
826813
"nothing-lazy-val",
827814
"nothing-val",
828815
"nothing-var",
@@ -847,8 +834,6 @@ class FromTastyTests extends ParallelTesting {
847834
"range",
848835
"range-unit",
849836
"reducable",
850-
"retclosure",
851-
"retsynch",
852837
"returning",
853838
"runtime",
854839
"search",
@@ -858,7 +843,6 @@ class FromTastyTests extends ParallelTesting {
858843
"supercalls-traits",
859844
"sysprops",
860845
"t0017",
861-
"t0042",
862846
"t0325",
863847
"t0631",
864848
"t1335",
@@ -898,7 +882,6 @@ class FromTastyTests extends ParallelTesting {
898882
"t3763",
899883
"t3832",
900884
"t3855",
901-
"t3877",
902885
"t3935",
903886
"t4013",
904887
"t4013b",
@@ -929,7 +912,6 @@ class FromTastyTests extends ParallelTesting {
929912
"t5604",
930913
"t5608",
931914
"t5610a",
932-
"t5612",
933915
"t5629b",
934916
"t5648",
935917
"t5688",
@@ -976,8 +958,6 @@ class FromTastyTests extends ParallelTesting {
976958
"t7242",
977959
"t7249",
978960
"t7341",
979-
"t7407",
980-
"t7407b",
981961
"t7436",
982962
"t7475b",
983963
"t7571",
@@ -998,7 +978,6 @@ class FromTastyTests extends ParallelTesting {
998978
"t8197",
999979
"t8233",
1000980
"t8233-bcode",
1001-
"t8245",
1002981
"t8346",
1003982
"t8395",
1004983
"t8601",

library/src/scala/tasty/util/ShowSourceCode.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
397397
}
398398

399399
case Term.Return(expr) =>
400-
this += "}"
400+
this += "return "
401401
printTree(expr)
402402

403403
case Term.Repeated(elems) =>

tests/pos/t3869.decompiled

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)