e41a1247e2
Otherwise, if complex expressions such as when expressions are used in combination with the intrinsics we get incorrect stepping behavior. ^KT-64341 Fixed
42 lines
637 B
Kotlin
Vendored
42 lines
637 B
Kotlin
Vendored
// IGNORE_BACKEND: WASM
|
|
// FILE: test.kt
|
|
|
|
fun foo(n: Any) {
|
|
if (1 == when (n) {
|
|
is Int -> n
|
|
else -> 1.0f
|
|
}) {
|
|
}
|
|
if (1 != when (n) {
|
|
is Int -> n
|
|
else -> 1.0f
|
|
}) {
|
|
}
|
|
}
|
|
|
|
fun box() {
|
|
foo(2)
|
|
}
|
|
|
|
// EXPECTATIONS JVM_IR
|
|
// test.kt:18 box
|
|
// test.kt:5 foo
|
|
// test.kt:6 foo
|
|
// test.kt:5 foo
|
|
// test.kt:10 foo
|
|
// test.kt:11 foo
|
|
// test.kt:10 foo
|
|
// test.kt:15 foo
|
|
// test.kt:19 box
|
|
|
|
// EXPECTATIONS JS_IR
|
|
// test.kt:18 box
|
|
// test.kt:6 foo
|
|
// test.kt:6 foo
|
|
// test.kt:5 foo
|
|
// test.kt:11 foo
|
|
// test.kt:11 foo
|
|
// test.kt:10 foo
|
|
// test.kt:15 foo
|
|
// test.kt:19 box
|