aboutsummaryrefslogtreecommitdiff
path: root/tests/debug/nested-method.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/debug/nested-method.scala')
-rw-r--r--tests/debug/nested-method.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/debug/nested-method.scala b/tests/debug/nested-method.scala
new file mode 100644
index 000000000..fcc326ccb
--- /dev/null
+++ b/tests/debug/nested-method.scala
@@ -0,0 +1,15 @@
+object Test {
+ def main(args: Array[String]): Unit = {
+ val a = 1 + 2 // [break] [step: a * 9]
+ val b = a * 9 // [step: plus] [step: x * x]
+
+ def plus(x: Int, y: Int) = {
+ val a = x * x // [step: y * y]
+ val b = y * y // [step: a + b]
+ a + b // [step: plus]
+ }
+
+ val c = plus(a, b) // [step: print] [cont]
+ print(c)
+ }
+} \ No newline at end of file