From 8434922d6f0ead95a2109a5e41f4db4136449e93 Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Wed, 5 Dec 2012 16:44:53 +0100 Subject: Addtional test cases for tail calls in catches. - Includes a run test to check bytecode verifies and behaves - Show this isn't possible when try is used as an expression, and a `liftedTree` local method is needed. --- test/files/neg/t1672b.check | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/files/neg/t1672b.check') diff --git a/test/files/neg/t1672b.check b/test/files/neg/t1672b.check index 288e47c315..60ccf77174 100644 --- a/test/files/neg/t1672b.check +++ b/test/files/neg/t1672b.check @@ -10,4 +10,7 @@ t1672b.scala:29: error: could not optimize @tailrec annotated method boz: it con t1672b.scala:34: error: could not optimize @tailrec annotated method bez: it contains a recursive call not in tail position def bez : Nothing = { ^ -four errors found +t1672b.scala:46: error: could not optimize @tailrec annotated method bar: it contains a recursive call not in tail position + else 1 + (try { + ^ +5 errors found -- cgit v1.2.3