Files
kotlin-fork/compiler/testData/compileJavaAgainstKotlin/method/Delegation.kt
T
Andrey Breslav 39234b4d3e Delegated members should not be synthetic
Otherwise they are invisible to Java code
2014-01-23 17:59:17 +04:00

11 lines
150 B
Kotlin

trait Trait {
fun foo()
val bar: Int
}
class Impl: Trait {
override fun foo() {}
override val bar = 1
}
class Test : Trait by Impl()