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