Count JVM class name for inlined function from base declaration

Drop code with naive removing all anonymous classes.
Breakpoints now works when inline call is in anonymous call.
This commit is contained in:
Nikolay Krasko
2017-02-24 18:02:16 +03:00
committed by Nikolay Krasko
parent cd92e3fc98
commit dffbe0f707
4 changed files with 47 additions and 25 deletions
@@ -0,0 +1,23 @@
package stopInObjectLiteralInInlineCallWithClosureInAnonymous
fun main(args: Array<String>) {
val a = 12
{
inlineF {
val s = object : () -> Unit {
override fun invoke() {
//Breakpoint!
nop(a)
nop(a)
}
}
s()
}
}()
}
inline fun <R> inlineF(block: () -> R): R = block()
fun nop(a: Any) {}