aboutsummaryrefslogtreecommitdiff
path: root/tests/debug/method.scala
blob: 9489b0088f3e814eb984cdc6676564f9e7498ac1 (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        // [break] [step: a * 9]
    val b = a * 9        // [step: plus]
    val c = plus(a, b)   // [step: x * x]
    print(c)
  }

  def plus(x: Int, y: Int) = {
    val a = x * x               // [step: y * y]
    val b = y * y               // [step: a + b]
    a + b                       // [step: plus] [step: print] [cont]
  }
}