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

15 lines
241 B
Kotlin
Vendored

open class Base
interface Trait : Base {
private val value : String
get() = "OK"
override fun toString() = object {
fun foo() = value
}.foo()
}
class Derived : Trait, Base()
fun box() = "${Derived()}"