summaryrefslogtreecommitdiff
path: root/test/files/continuations-run/t5314.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/continuations-run/t5314.scala')
-rw-r--r--test/files/continuations-run/t5314.scala14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/files/continuations-run/t5314.scala b/test/files/continuations-run/t5314.scala
index d611016ce4..e448d8558d 100644
--- a/test/files/continuations-run/t5314.scala
+++ b/test/files/continuations-run/t5314.scala
@@ -1,14 +1,14 @@
import scala.util.continuations._
-class ReturnRepro {
- def s1: Int @cpsParam[Any, Unit] = shift { k => k(5) }
+class ReturnRepro {
+ def s1: Int @cpsParam[Any, Unit] = shift { k => k(5) }
def caller = reset { println(p(3)) }
def caller2 = reset { println(p2(3)) }
- def p(i: Int): Int @cpsParam[Unit, Any] = {
- val v= s1 + 3
- return v
- }
+ def p(i: Int): Int @cpsParam[Unit, Any] = {
+ val v= s1 + 3
+ return v
+ }
def p2(i: Int): Int @cpsParam[Unit, Any] = {
val v = s1 + 3
@@ -38,7 +38,7 @@ object Test extends App {
println(reset { bar3(10) })
println(reset { bar4(10) })
println(reset { bar5(10) })
-
+
/* original test case */
val repro = new ReturnRepro
repro.caller