mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
5 lines
200 B
Kotlin
5 lines
200 B
Kotlin
fun box(): String {
|
|
val a: Long = 2147483647 + 1
|
|
if (a != -2147483648L) return "fail: in this case we should add to ints and than cast the result to long - overflow expected"
|
|
return "OK"
|
|
} |