aboutsummaryrefslogtreecommitdiff
path: root/tests/debug/function.scala
diff options
context:
space:
mode:
authorliu fengyun <liu@fengy.me>2017-02-09 17:24:47 +0100
committerliu fengyun <liu@fengy.me>2017-02-10 19:26:07 +0100
commitc7a557c43221c1fbad4117e63b6cd8c255ddc8f7 (patch)
treed9caf39c785e5b800553aea3f34a59a98064b68f /tests/debug/function.scala
parent22056d080e29e53bccd1b1b1ba9ffa2cbe8d0c64 (diff)
downloaddotty-c7a557c43221c1fbad4117e63b6cd8c255ddc8f7.tar.gz
dotty-c7a557c43221c1fbad4117e63b6cd8c255ddc8f7.tar.bz2
dotty-c7a557c43221c1fbad4117e63b6cd8c255ddc8f7.zip
add more debug files to the tests
Diffstat (limited to 'tests/debug/function.scala')
-rw-r--r--tests/debug/function.scala14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/debug/function.scala b/tests/debug/function.scala
new file mode 100644
index 000000000..644344414
--- /dev/null
+++ b/tests/debug/function.scala
@@ -0,0 +1,14 @@
+object Test {
+ def main(args: Array[String]): Unit = {
+ val a = 1 + 2
+ val b = a * 9 // [break] [step: plus] [step: c = plus]
+ val plus = (x: Int, y: Int) => { // [cont: x * x]
+ val a = x * x // [break] [step: y * y]
+ val b = y * y // [step: a + b]
+ a + b // [next] [next]
+ }
+ val c = plus(a, b) // [next: print]
+ print(c) // [cont]
+ }
+
+}