JVM: parse KotlinDebug when regenerating anonymous objects

This commit is contained in:
pyos
2020-04-08 13:53:17 +02:00
committed by max-kammerer
parent 1fe7ef6521
commit 5feadd56ef
14 changed files with 167 additions and 158 deletions
@@ -0,0 +1,14 @@
inline fun foo(crossinline x: () -> Unit) = object {
fun run() {
barNonThrowing()
x()
}
}.run()
inline fun barNonThrowing() {
null
}
inline fun bar() {
null!!
}
@@ -0,0 +1,9 @@
fun box() {
foo {
bar()
}
}
// NAVIGATE_TO_CALL_SITE
// FILE: inlineFunCallSiteInLambdaInlinedIntoObject.kt
// LINE: 3
@@ -0,0 +1,14 @@
inline fun foo(crossinline x: () -> Unit) = object {
fun run() {
bar()
x()
}
}.run()
inline fun barNonThrowing() {
null
}
inline fun bar() {
null!!
}
@@ -0,0 +1,9 @@
fun box() {
foo {
barNonThrowing()
}
}
// NAVIGATE_TO_CALL_SITE
// FILE: inlineFun.kt
// LINE: 3