Files
kotlin-fork/compiler/testData/codegen/box/regressions/kt7401.kt
T

11 lines
139 B
Kotlin
Vendored

fun foo(): Long {
var n = 2L
if (n > 0L) {
n++
}
n++
return n
}
fun box() = if (foo() == 4L) "OK" else "Fail"