aboutsummaryrefslogtreecommitdiff
path: root/tests/debug/function.scala
blob: 6443444144641a9d014179a67cc4ede296133b90 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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]
  }

}