mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
Includes changes to decompiled text Old syntax is used in builtins and project code for now
18 lines
262 B
Kotlin
18 lines
262 B
Kotlin
class A {
|
|
default object {
|
|
val i1 = 1
|
|
val i2 = 2
|
|
}
|
|
}
|
|
|
|
class B {
|
|
default object Named {
|
|
val i1 = 3
|
|
val i2 = 4
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
return if (J.f() == A.i1 + A.i2 + B.i1 + B.i2) "OK" else "Fail: ${J.f()}"
|
|
}
|