Files
kotlin-fork/compiler/testData/codegen/box/traits/withRequiredPropertyViaBridge.kt
T
Alexander Udalov 242b97febf Fix mapGetterSignature/mapSetterSignature
In case of TRAIT_IMPL the incorrect this was written. Reuse the code from the
common mapSignature

 #KT-3413 Fixed
2013-03-15 22:03:39 +04:00

15 lines
228 B
Kotlin

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