Files
kotlin-fork/js/js.translator/testData/simple/cases/if.kt
T
2014-03-11 20:04:00 +04:00

23 lines
261 B
Kotlin
Vendored

package foo
fun bol(): Int {
val a = 2;
val b = 3;
var c = 4;
if (a < 2) {
return a;
}
if (a > 2) {
return b;
}
if (a == c) {
return c;
}
else {
return 5;
}
}
fun box() = bol() == 5