Files
kotlin-fork/compiler/testData/asJava/lightClasses/lightClassByPsi/delegatingToInterfaces.kt
T
2023-01-02 15:05:38 +00:00

20 lines
380 B
Kotlin
Vendored

interface Base {
fun printMessage()
fun printMessageLine()
val x: Int
var y: Int
fun String.foo(y: Any?): Int
}
class BaseImpl(val x: Int) : Base {
override fun printMessage() { print(x) }
override fun printMessageLine() { println(x) }
}
class Derived(b: Base) : Base by b {
override fun printMessage() { print("abc") }
}
// COMPILATION_ERRORS