aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/tailcall/t1672.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-10-22 11:47:43 +0200
committerMartin Odersky <odersky@gmail.com>2014-10-26 16:24:01 +0100
commit651ff01e07b90c481e30afdd1500f617d74aeeb4 (patch)
tree82a54d6938093a5f8002eca3128e6c17ac913ec4 /tests/pos/tailcall/t1672.scala
parent854373753526248737ee554290b73fa583f0c264 (diff)
downloaddotty-651ff01e07b90c481e30afdd1500f617d74aeeb4.tar.gz
dotty-651ff01e07b90c481e30afdd1500f617d74aeeb4.tar.bz2
dotty-651ff01e07b90c481e30afdd1500f617d74aeeb4.zip
LambdaLift checks now explicitly for references to labels outside scope.
Nested methods cannot refer to labels in theior environment. Needs a fix in TailCalls. Moved failing test to pending.
Diffstat (limited to 'tests/pos/tailcall/t1672.scala')
-rw-r--r--tests/pos/tailcall/t1672.scala10
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/pos/tailcall/t1672.scala b/tests/pos/tailcall/t1672.scala
deleted file mode 100644
index 9be5c6066..000000000
--- a/tests/pos/tailcall/t1672.scala
+++ /dev/null
@@ -1,10 +0,0 @@
-object Test1672 {
- @annotation.tailrec
- def bar(x: Int)(y: Int) : Nothing = {
- try {
- throw new RuntimeException
- } catch {
- case _: Throwable => bar(x)(y)
- }
- }
-}