Files
kotlin/compiler/testData/checkLocalVariablesTable/inlineLambdaWithItParam.kt
Denis Zharkov 9802931a90 Remove variables with empty ranges from local vars table
As their ranges may intersect after dead code elimination that leads to VerifyError
2015-06-04 16:11:02 +03:00

18 lines
350 B
Kotlin
Vendored

class A {
inline fun inlineFun(s: (s: Int) -> Unit) {
s(11)
}
fun foo() {
inlineFun ({
var zzz = it;
zzz++
})
}
}
// METHOD : A.foo()V
// VARIABLE : NAME=zzz TYPE=I INDEX=3
// VARIABLE : NAME=it TYPE=I INDEX=2
// VARIABLE : NAME=this TYPE=LA; INDEX=0