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