mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
Dex ignores subsequent line numbers for same instructions and interprets instruction after inline as if they were inlined. This makes debugger behaves as if there's nowhere to stop on line with breakpoint. This also makes stepping through inline function consistent with non-inline analog. In both context debugger now stops on '}'. #KT-18949 Fixed #KT-17120 Fixed
12 lines
230 B
Kotlin
Vendored
12 lines
230 B
Kotlin
Vendored
fun box() {
|
|
lookAtMe {
|
|
val c = "c"
|
|
}
|
|
}
|
|
|
|
inline fun lookAtMe(f: (String) -> Unit) {
|
|
val a = "a"
|
|
f(a) // Should be no unneeded nops on this line, that might be generated for zero-parameters lambda
|
|
}
|
|
|
|
// 4 NOP |