mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
Includes changes to decompiled text Old syntax is used in builtins and project code for now
20 lines
258 B
Kotlin
20 lines
258 B
Kotlin
var global = 0;
|
|
|
|
class C {
|
|
default 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"
|
|
}
|
|
|