blob: 9489b0088f3e814eb984cdc6676564f9e7498ac1 (
plain) (
tree)
|
|
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]
}
}
|