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