aboutsummaryrefslogtreecommitdiff
path: root/tests/debug/function.scala
diff options
context:
space:
mode:
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]
+ }
+
+}