mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-14 08:31:35 +00:00
12 lines
164 B
Plaintext
Vendored
12 lines
164 B
Plaintext
Vendored
// SIBLING:
|
|
fun foo(a: Int): Int {
|
|
val b: Int = 1
|
|
return when (a + b) {
|
|
i() -> b
|
|
1 -> -b
|
|
else -> a - b
|
|
}
|
|
}
|
|
|
|
private fun i() = 0
|