41a416da60
Delete all test methods (and empty test classes), since they'll be auto-generated
14 lines
251 B
Kotlin
14 lines
251 B
Kotlin
trait FooTrait {
|
|
val propertyTest: String
|
|
}
|
|
|
|
class FooDelegate: FooTrait {
|
|
override val propertyTest: String = "OK"
|
|
}
|
|
|
|
class DelegateTest(): FooTrait by FooDelegate() {
|
|
fun test() = propertyTest
|
|
}
|
|
|
|
fun box() = DelegateTest().test()
|