Files
kotlin-fork/compiler/testData/codegen/box/intrinsics/kt12125_2.kt
T
2018-07-03 19:51:58 +03:00

16 lines
349 B
Kotlin
Vendored

fun box(): String {
var aByte: Byte? = 0
var bByte: Byte = 0
if (aByte != null) aByte--
bByte--
if (aByte != bByte) return "Failed post-decrement Byte: $aByte != $bByte"
if (aByte != null) aByte++
bByte++
if (aByte != bByte) return "Failed post-increment Byte: $aByte != $bByte"
aByte = null
return "OK"
}