mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
12 lines
192 B
Kotlin
Vendored
12 lines
192 B
Kotlin
Vendored
package zzz
|
|
|
|
import kotlin.InlineOption.*
|
|
|
|
inline fun calc(crossinline lambda: () -> Int): Int {
|
|
return doCalc { lambda() }
|
|
}
|
|
|
|
fun doCalc(lambda2: () -> Int): Int {
|
|
return lambda2()
|
|
}
|