Files
kotlin-fork/compiler/testData/debug/stepping/defaultParameter.kt
T

44 lines
803 B
Kotlin
Vendored

// FILE: test.kt
class A {
fun computeParam() = 32
fun foo(param: Int = computeParam()) {
}
}
fun box() {
A().foo()
}
// FORCE_STEP_INTO
// EXPECTATIONS JVM_IR
// test.kt:12 box
// test.kt:4 <init>
// test.kt:12 box
// test.kt:7 foo$default (synthetic)
// test.kt:5 computeParam
// test.kt:7 foo$default (synthetic)
// test.kt:8 foo
// test.kt:7 foo$default (synthetic)
// test.kt:13 box
// EXPECTATIONS JS_IR
// test.kt:12 box
// test.kt:4 <init>
// test.kt:12 box
// test.kt:7 foo$default
// test.kt:5 computeParam
// test.kt:8 foo
// test.kt:13 box
// EXPECTATIONS WASM
// test.kt:1 $box
// test.kt:12 $box (4, 4, 8, 8, 8, 8)
// test.kt:9 $A.<init>
// test.kt:7 $A.foo$default (4, 25, 25, 25, 25, 4)
// test.kt:5 $A.computeParam (25, 27)
// test.kt:8 $A.foo
// test.kt:13 $box