mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 08:31:35 +00:00
17 lines
196 B
Kotlin
Vendored
17 lines
196 B
Kotlin
Vendored
fun foo() {
|
|
foo({
|
|
val a = 1
|
|
})
|
|
|
|
foo() {
|
|
val a = 1
|
|
}
|
|
}
|
|
|
|
inline fun foo(f: () -> Unit) {
|
|
val a = 1
|
|
f()
|
|
}
|
|
|
|
// 2 12 13 3 4 14 6 12 13 7 8 14 9 12 13 14
|