mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
Similar to enum entry initialization, when we have a companion object in an interface, its constructor (or clinit) initializes its state before the instance field in corresponding interface is initialized. So, interface companion object must be accessed via a captured object reference (#0, or #0.this$0 for inner anonymous objects).
653 B
Vendored
653 B
Vendored