diff options
Diffstat (limited to 'tests/untried/pos/t6479.scala')
-rw-r--r-- | tests/untried/pos/t6479.scala | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/tests/untried/pos/t6479.scala b/tests/untried/pos/t6479.scala deleted file mode 100644 index e4a4ff601..000000000 --- a/tests/untried/pos/t6479.scala +++ /dev/null @@ -1,56 +0,0 @@ -object TailrecAfterTryCatch { - - @annotation.tailrec - final def good1(): Unit = { - 1 match { - case 2 => { - try { - // return - } catch { - case e: ClassNotFoundException => - } - good1() - } - } - } - - @annotation.tailrec - final def good2(): Unit = { - //1 match { - // case 2 => { - try { - return - } catch { - case e: ClassNotFoundException => - } - good2() - // } - //} - } - - @annotation.tailrec - final def good3(): Unit = { - val 1 = 2 - try { - return - } catch { - case e: ClassNotFoundException => - } - good3() - } - - @annotation.tailrec - final def bad(): Unit = { - 1 match { - case 2 => { - try { - return - } catch { - case e: ClassNotFoundException => - } - bad() - } - } - } - -} |