Files
kotlin-fork/compiler/testData/codegen/box/controlStructures/kt3203_2.kt
T
2018-06-19 17:09:31 +03:00

21 lines
360 B
Kotlin
Vendored

fun check1() {
val result = if (true) {
if (true) 1 else 2
}
else 3
if (result != 1) throw AssertionError("result: $result")
}
fun check2() {
val result = if (true)
if (true) 1 else 2
else 3
if (result != 1) throw AssertionError("result: $result")
}
fun box(): String {
check1()
check2()
return "OK"
}