From c7a557c43221c1fbad4117e63b6cd8c255ddc8f7 Mon Sep 17 00:00:00 2001 From: liu fengyun Date: Thu, 9 Feb 2017 17:24:47 +0100 Subject: add more debug files to the tests --- tests/debug/for.scala | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/debug/for.scala (limited to 'tests/debug/for.scala') diff --git a/tests/debug/for.scala b/tests/debug/for.scala new file mode 100644 index 000000000..b2287a988 --- /dev/null +++ b/tests/debug/for.scala @@ -0,0 +1,16 @@ +object Test { + def main(args: Array[String]): Unit = { + val b = 8 * 9 // [break] [step: f()] + f() // [step: val a] + 20 + b + print(b) + } + + def f(): Unit = { + val a = for (i <- 1 to 5; j <- 10 to 20) // [cont] + yield (i, j) // Error: incorrect reaching this line + + for (i <- 1 to 5; j <- 10 to 20) + println(i + j) // TODO: i is renamed to i$2 --> reduce debuggability + } +} \ No newline at end of file -- cgit v1.2.3