Files
kotlin-fork/compiler/testData/codegen/box/secondaryConstructors/delegationWithPrimary.kt
T

18 lines
236 B
Kotlin
Vendored

internal interface A {
fun foo(): String
}
internal class B : A {
override fun foo() = "OK"
}
val global = B()
internal class C(x: Int) : A by global {
constructor(): this(1)
}
fun box(): String {
return C().foo()
}