mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
17 lines
230 B
Kotlin
Vendored
17 lines
230 B
Kotlin
Vendored
fun f(a: Int) {
|
|
run2(fun () {
|
|
<lineMarker>f</lineMarker>(a - 1)
|
|
})
|
|
}
|
|
|
|
fun ff(a: Int) {
|
|
run1 {
|
|
ff(a - 1)
|
|
}
|
|
}
|
|
|
|
inline fun <T> run1(noinline f: () -> T): T { }
|
|
|
|
inline fun <T> run2(f: () -> T): T { }
|
|
|