JVM_IR: Generate more line numbers for intrinsic comparisons.
Otherwise, if complex expressions such as when expressions are used in combination with the intrinsics we get incorrect stepping behavior. ^KT-64341 Fixed
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// FILE: test.kt
|
||||
|
||||
fun foo(n: Number) {
|
||||
if (when (n) {
|
||||
is Float -> null
|
||||
else -> 32
|
||||
} == null) {
|
||||
}
|
||||
if (when (n) {
|
||||
is Float -> null
|
||||
else -> 32
|
||||
} != null) {
|
||||
}
|
||||
}
|
||||
|
||||
fun box() {
|
||||
foo(2.0f)
|
||||
}
|
||||
|
||||
// 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:11 foo
|
||||
// test.kt:11 foo
|
||||
// test.kt:15 foo
|
||||
// test.kt:19 box
|
||||
Reference in New Issue
Block a user