Files
kotlin/compiler/testData/loadJava/compiledKotlin/classObject/Delegation.kt
Mads Ager 71604851fe JVM_IR: Allow delegated companion objects.
This currently leads to a compilation error due to metadata
generation.
2019-06-07 13:26:20 +02:00

12 lines
132 B
Kotlin
Vendored

package test
interface T {
fun foo(): Int
}
class A : T {
override fun foo(): Int = 42
companion object : T by A()
}