Files
kotlin/compiler/testData/codegen/box/objects/kt560.kt
Alexander Udalov 41a416da60 Move blackBoxFile() testData to box/ directory
Delete all test methods (and empty test classes), since they'll be
auto-generated
2013-01-28 18:20:17 +04:00

29 lines
563 B
Kotlin

package while_bug_1
import java.io.*
open class AllEvenNum() {
class object {
open public fun main(args : Array<String?>?) : Unit {
var i : Int = 1
while ((i <= 100)) {
{
if (((i % 2) == 0))
{
System.out?.print((i.toString() + ","))
}
}
(i = i + 1)
}
}
}
}
fun box() : String {
AllEvenNum.main(arrayOfNulls<String>(0))
return "OK"
}