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