mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
11 lines
195 B
Kotlin
Vendored
11 lines
195 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 }
|
|
}
|
|
|
|
// 2 LOCALVARIABLE p
|
|
// 1 LOCALVARIABLE p\$iv |