Files
kotlin/compiler/testData/codegen/bytecodeText/inline/remappedLocalVar.kt
2018-12-21 16:20:45 +01:00

13 lines
264 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
inline fun watch(p: String, f: (String) -> Int) {
f(p)
}
fun main(args: Array<String>) {
val local = "mno"
watch(local) { it.length }
}
/*fix rollbacked cause of robovm problem*/
// 1 LOCALVARIABLE p
// 0 LOCALVARIABLE p\$iv