mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
A set of tests for KT-7561 on codegen side, including exotic inc() functions(). #KT-7561 Fixed.
9 lines
224 B
Kotlin
Vendored
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"
|
|
}
|