Files
kotlin/compiler/testData/codegen/box/classes/classObjectAsStaticInitializer.kt
2013-03-04 16:42:55 +04:00

20 lines
256 B
Kotlin

var global = 0;
class C {
class object {
{
global = 1;
}
}
}
fun box(): String {
if (global != 0) {
return "fail1: global = $global"
}
val c = C()
if (global == 1) return "OK" else return "fail2: global = $global"
}