Files
kotlin-fork/compiler/testData/codegen/box/boxingOptimization/simpleUninitializedMerge.kt
T
2016-11-09 21:41:12 +03:00

18 lines
302 B
Kotlin
Vendored

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// 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"
}