Files
kotlin-fork/plugins/uast-kotlin/testData/ConstructorDelegate.kt
T
Jinseong Jeon 7f627ab480 FIR UAST: track all legacy test data since facade class is converted
These are mostly mechanical changes.
2021-05-06 20:19:29 +02:00

16 lines
253 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)
}