Skip to content

Commit 81c6b02

Browse files
committed
add debug for if
1 parent b83c9cd commit 81c6b02

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tests/debug/if.scala

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
object Test {
2+
3+
def main(args: Array[String]): Unit = {
4+
var a = 1 + 2 // [break] [step: a + 3]
5+
a = a + 3 // [step: 4 + 5]
6+
a = 4 + 5 // [step: if]
7+
8+
if (a * 8 > 20) // [step: 9 * 9]
9+
a = 9 * 9 // [step: if]
10+
else
11+
a = 34 * 23
12+
13+
if (a * 8 < 20) // [step: 34 * 23]
14+
a = 9 * 9
15+
else
16+
a = 34 * 23 // [step: print]
17+
18+
print(a)
19+
}
20+
}

0 commit comments

Comments
 (0)