From 97828b370d9b5e0a4c5b4ec5b1da1c174e417df9 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Fri, 12 Sep 2014 01:21:10 +0200 Subject: Handle return in tailcalls. Avoids characterizing the "from" link in a return as a tail call reference. --- tests/pos/tailcall/return.scala | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/pos/tailcall/return.scala (limited to 'tests/pos/tailcall') 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 + +} -- cgit v1.2.3