Files
kotlin-fork/compiler/testData/codegen/box/delegation/hiddenSuperOverrideIn1.0.kt
T
Anton Bannykh d042038045 JS IR: mute tests with language version 1.0
Long.rem declaration doesn't compile
2018-07-12 14:18:34 +03:00

23 lines
377 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JVM_IR
// LANGUAGE_VERSION: 1.0
public interface Base {
fun test() = "base fail"
}
public interface Base2 : Base {
override fun test() = "base 2fail"
}
class Delegate : Base {
override fun test(): String {
return "OK"
}
}
fun box(): String {
return object : Base2, Base by Delegate() {
}.test()
}