Files
kotlin-fork/compiler/testData/debug/stepping/ifThenElseFalse.kt
T
2022-08-05 11:53:40 +00:00

48 lines
670 B
Kotlin
Vendored

// FILE: test.kt
var value = false
fun cond() = value
fun foo() {
if (cond())
cond()
else
false
}
fun box() {
foo()
value = true
foo()
}
// EXPECTATIONS JVM JVM_IR
// test.kt:15 box
// test.kt:8 foo
// test.kt:5 cond
// test.kt:8 foo
// test.kt:11 foo
// test.kt:12 foo
// test.kt:16 box
// test.kt:17 box
// test.kt:8 foo
// test.kt:5 cond
// test.kt:8 foo
// test.kt:9 foo
// test.kt:5 cond
// test.kt:9 foo
// test.kt:12 foo
// test.kt:18 box
// EXPECTATIONS JS_IR
// test.kt:15 box
// test.kt:8 foo
// test.kt:5 cond
// test.kt:16 box
// test.kt:17 box
// test.kt:8 foo
// test.kt:5 cond
// test.kt:9 foo
// test.kt:5 cond