diff options
author | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2012-09-28 03:25:19 -0700 |
---|---|---|
committer | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2012-09-28 03:25:19 -0700 |
commit | 0614d2f512ad7b1b3885f81d9e6e779f447a6511 (patch) | |
tree | b515ad4420c96c709103e588e1e4c4c611a4297a /test/files/continuations-neg/t5314-missing-result-type.scala | |
parent | 6b630ebb57306572e176a646e5bec7f3132ff18e (diff) | |
parent | cd14c3087ceca8145c3013c2751648b936f1256d (diff) | |
download | scala-0614d2f512ad7b1b3885f81d9e6e779f447a6511.tar.gz scala-0614d2f512ad7b1b3885f81d9e6e779f447a6511.tar.bz2 scala-0614d2f512ad7b1b3885f81d9e6e779f447a6511.zip |
Merge pull request #994 from phaller/issue/5314
SI-5314 - CPS transform of return statement fails (resubmission of #987)
Diffstat (limited to 'test/files/continuations-neg/t5314-missing-result-type.scala')
-rw-r--r-- | test/files/continuations-neg/t5314-missing-result-type.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/continuations-neg/t5314-missing-result-type.scala b/test/files/continuations-neg/t5314-missing-result-type.scala new file mode 100644 index 0000000000..d7c5043a86 --- /dev/null +++ b/test/files/continuations-neg/t5314-missing-result-type.scala @@ -0,0 +1,13 @@ +import scala.util.continuations._ + +object Test extends App { + def foo(x:Int): Int @cps[Int] = x + + def bar(x:Int) = return foo(x) + + reset { + val res = bar(8) + println(res) + res + } +} |