diff options
Diffstat (limited to 'tests/debug/if.scala')
-rw-r--r-- | tests/debug/if.scala | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/debug/if.scala b/tests/debug/if.scala new file mode 100644 index 000000000..af598c1cd --- /dev/null +++ b/tests/debug/if.scala @@ -0,0 +1,20 @@ +object Test { + + def main(args: Array[String]): Unit = { + var a = 1 + 2 // [break] [step: a + 3] + a = a + 3 // [step: 4 + 5] + a = 4 + 5 // [step: if] + + if (a * 8 > 20) // [step: 9 * 9] + a = 9 * 9 // [step: if] + else + a = 34 * 23 + + if (a * 8 < 20) // [step: 34 * 23] + a = 9 * 9 + else + a = 34 * 23 // [step: print] + + print(a) + } +} |