mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 08:31:29 +00:00
8 lines
138 B
Kotlin
Vendored
8 lines
138 B
Kotlin
Vendored
fun test(b: Boolean): (Int) -> Int {
|
|
if (b) {
|
|
fun foo(n: Int) = n + 1
|
|
}
|
|
else {
|
|
fun bar(n: Int) = n - 1
|
|
}
|
|
} |