Files
kotlin-fork/compiler/testData/codegen/box/objects/objectWithSuperclass.kt
T
2020-04-27 11:50:26 +03:00

17 lines
241 B
Kotlin
Vendored

open class A {
open fun foo(): Int {
return 2
}
}
object O: A() {
override fun foo(): Int {
val s = super<A>.foo()
return s + 3
}
}
fun box() : String {
return if (O.foo() == 5) "OK" else "fail"
}