[JVM_IR] Fix stepping behavior for assignments to local variables.
This commit is contained in:
@@ -1,15 +1,32 @@
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// FILE: test.kt
|
||||
|
||||
inline fun ifoo(ok: String = "OK"): String {
|
||||
return ok
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return ifoo()
|
||||
fun ifoo2(ok: String = "OK"): String {
|
||||
return ok
|
||||
}
|
||||
// TODO: IR Backend behaves like simpleDefaultArg: 8,3,4, _3_ ,8
|
||||
|
||||
fun box(): String {
|
||||
ifoo()
|
||||
return ifoo2()
|
||||
}
|
||||
|
||||
// JVM_IR backend has the same stepping behavior as
|
||||
// the non-inlined case when using force step into to step
|
||||
// through $default method. JVM does not.
|
||||
|
||||
// FORCE_STEP_INTO
|
||||
// LINENUMBERS
|
||||
// test.kt:8 box
|
||||
// test.kt:12 box
|
||||
// test.kt:3 box
|
||||
// test.kt:4 box
|
||||
// test.kt:8 box
|
||||
// LINENUMBERS JVM_IR
|
||||
// test.kt:3 box
|
||||
// LINENUMBERS
|
||||
// test.kt:13 box
|
||||
// test.kt:7 ifoo2$default (synthetic)
|
||||
// test.kt:8 ifoo2
|
||||
// test.kt:7 ifoo2$default (synthetic)
|
||||
// test.kt:13 box
|
||||
Reference in New Issue
Block a user