mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
12 lines
238 B
Kotlin
Vendored
12 lines
238 B
Kotlin
Vendored
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 |