aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/tailcall/return.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/tailcall/return.scala')
-rw-r--r--tests/pos/tailcall/return.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/pos/tailcall/return.scala b/tests/pos/tailcall/return.scala
new file mode 100644
index 000000000..454686c3d
--- /dev/null
+++ b/tests/pos/tailcall/return.scala
@@ -0,0 +1,5 @@
+object Test {
+
+ def foo(x: Int): Int = return 3
+
+}