summaryrefslogtreecommitdiff
path: root/test/files/neg/t6526.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t6526.scala')
-rw-r--r--test/files/neg/t6526.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/files/neg/t6526.scala b/test/files/neg/t6526.scala
index a34ba570d0..0bc249aa98 100644
--- a/test/files/neg/t6526.scala
+++ b/test/files/neg/t6526.scala
@@ -33,4 +33,9 @@ class TailRec {
}.foo
}
}
+
+ Some(new AnyRef) map { phooie =>
+ @tailrec
+ def inner(i: Int): Int = 1 + inner(i)
+ } getOrElse 42
}