Files
kotlin/compiler/testData/codegen/box/increment/postfixIncrementOnShortSmartCast.kt
2018-07-03 19:51:58 +03:00

9 lines
224 B
Kotlin
Vendored

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"
}