Files
kotlin-fork/compiler/testData/codegen/box/increment/prefixIncrementOnSmartCast.kt
T
2021-08-01 22:23:40 +03:00

9 lines
186 B
Kotlin
Vendored

fun box() : String {
var i : Int?
i = 10
// Prefix increment on a smart cast should work
val j = ++i
return if (j == 11 && 11 == i) "OK" else "fail j = $j i = $i"
}