Files
kotlin-fork/js/js.translator/testData/box/expression/evaluationOrder/evaluationOrder1.kt
T
Alexey Andreev 3b3fd0fa0d JS: fix DCE limits in test data to fit new kotlin.js size
The size has increased due to new implementation of KClass
2017-10-06 18:16:51 +03:00

19 lines
273 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1110
package foo
var d = 0
fun f(): Int {
d = if (d < 0) -100 else 100
return d
}
fun box(): String {
d = d-- + f() + when(d) {
-100 -> return "OK"
1 -> 1
else -> return "fail1"
}
return "fail2"
}