aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/tailcall/t1672.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/tailcall/t1672.scala')
-rw-r--r--tests/pos/tailcall/t1672.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/pos/tailcall/t1672.scala b/tests/pos/tailcall/t1672.scala
new file mode 100644
index 000000000..9be5c6066
--- /dev/null
+++ b/tests/pos/tailcall/t1672.scala
@@ -0,0 +1,10 @@
+object Test1672 {
+ @annotation.tailrec
+ def bar(x: Int)(y: Int) : Nothing = {
+ try {
+ throw new RuntimeException
+ } catch {
+ case _: Throwable => bar(x)(y)
+ }
+ }
+}