diff options
author | Martin Odersky <odersky@gmail.com> | 2014-09-12 01:21:10 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-09-12 02:23:47 +0200 |
commit | 97828b370d9b5e0a4c5b4ec5b1da1c174e417df9 (patch) | |
tree | 4253640c96974c98cd615b9a34be91f26d69dceb /tests/pos | |
parent | 7af0b4bd179a40b75992487dfda2c9f84af852db (diff) | |
download | dotty-97828b370d9b5e0a4c5b4ec5b1da1c174e417df9.tar.gz dotty-97828b370d9b5e0a4c5b4ec5b1da1c174e417df9.tar.bz2 dotty-97828b370d9b5e0a4c5b4ec5b1da1c174e417df9.zip |
Handle return in tailcalls.
Avoids characterizing the "from" link in a return as a tail call
reference.
Diffstat (limited to 'tests/pos')
-rw-r--r-- | tests/pos/tailcall/return.scala | 5 |
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 + +} |