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