Files
kotlin-fork/compiler/testData/codegen/box/secondaryConstructors/delegationWithPrimary.kt
T
2015-05-12 19:43:17 +02:00

18 lines
209 B
Kotlin
Vendored

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