mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
6 lines
136 B
Kotlin
6 lines
136 B
Kotlin
// SIBLING:
|
|
fun foo(a: Int): Int {
|
|
val b: Int = 1
|
|
return if (<selection>a + b > 0</selection>) 1 else if (a - b < 0) 2 else b
|
|
}
|