Files
kotlin-fork/backend.native/tests/external/codegen/box/increment/postfixIncrementOnShortSmartCast.kt
T
2017-03-13 15:31:46 +03:00

9 lines
224 B
Kotlin

public fun box() : String {
var i : Short?
i = 10
// Postfix increment on a smart casted short should work
val j = i++
return if (j!!.toInt() == 10 && i!!.toInt() == 11) "OK" else "fail j = $j i = $i"
}