Files
kotlin-fork/compiler/testData/codegen/box/traits/withRequiredPropertyViaBridge.kt
T
Alexander Udalov 3dcd85bdb4 Add toString() to Any, fix all tests
#KT-4517 Fixed
2014-03-02 19:54:49 +04:00

15 lines
237 B
Kotlin

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