Files
kotlin-fork/plugins/uast-kotlin/testData/ConstructorDelegate.kt
T
2019-03-01 15:00:31 +03:00

15 lines
252 B
Kotlin
Vendored

interface Base {
fun print()
}
class BaseImpl(val x: Int) : Base {
override fun print() {
print(x)
}
}
class Derived(b: Base) : Base by createBase(10), CharSequence by "abc"
fun createBase(i: Int): Base {
return BaseImpl(i)
}