aboutsummaryrefslogblamecommitdiff
path: root/tests/debug/while.scala
blob: 0e5f8f8b0b9c5059f031fdb664377312d6268cb3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                        
object Test {

  def main(args: Array[String]): Unit = {
    var a = 1 + 2
    a = a + 3
    a = 4 + 5 // [break] [step: while]

    while (a * 8 < 100) { // [step: a += 1]
      a += 1              // [step: while] [cont: print]
    }

    print(a) // [break] [cont]
  }
}