59f192ef90
Includes changes to decompiled text Old syntax is used in builtins and project code for now
23 lines
260 B
Kotlin
23 lines
260 B
Kotlin
class CallbackBlock {}
|
|
|
|
public class Foo
|
|
{
|
|
default object {
|
|
private var bar = 0
|
|
}
|
|
|
|
{
|
|
++bar
|
|
}
|
|
|
|
fun getBar(): Int = bar
|
|
}
|
|
|
|
fun box() : String {
|
|
|
|
val foo = Foo()
|
|
|
|
if (foo.getBar() != 1) return "Fail";
|
|
|
|
return "OK"
|
|
} |