mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 08:31:35 +00:00
14 lines
296 B
Kotlin
Vendored
14 lines
296 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
|
|
const val M = Int.MAX_VALUE
|
|
|
|
fun box(): String {
|
|
var step = 0
|
|
for (i in (M .. M).reversed()) {
|
|
++step
|
|
if (step > 1) throw AssertionError("Should be executed once")
|
|
}
|
|
if (step != 1) throw AssertionError("Should be executed once")
|
|
|
|
return "OK"
|
|
} |