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:
committed by
Nikolay Krasko
parent
cd92e3fc98
commit
dffbe0f707
+23
@@ -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) {}
|
||||
Reference in New Issue
Block a user