12 lines
180 B
Kotlin
Vendored
12 lines
180 B
Kotlin
Vendored
fun builder(block: () -> Int): Boolean {
|
|
block()
|
|
return true
|
|
}
|
|
|
|
fun intFunction(): Int {
|
|
return 5
|
|
}
|
|
|
|
fun test(b: Boolean) {
|
|
builder { <expr>intFunction()</expr> }
|
|
} |