Files
kotlin/compiler/testData/codegen/box/boxingOptimization/simpleUninitializedMerge.kt
Roman Artemev c62e4b4fcf [JS IR BE] Support coroutines
* Move FinallyBlockLowering to common part
* Fix catching of dynamic exception
* Fix bridges for suspend functions
* Disable explicit cast to Unit
* Run lowering per module
* Update some test data
2018-08-08 18:33:39 +03:00

15 lines
206 B
Kotlin
Vendored

// WITH_RUNTIME
import kotlin.test.assertEquals
fun box(): String {
var result = 0
if (1 == 1) {
val x: Int? = 1
result += x!!
}
assertEquals(1, result)
return "OK"
}