blob: 2c88a74e4b2d276dc0e85a7630211d1d7b567c4e [file] [log] [blame]
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