Files
kotlin-fork/idea/testData/codegen/classes/inheritedMethod.jet
T
2011-05-30 16:26:12 +04:00

14 lines
201 B
Plaintext

class Foo {
fun xyzzy(): String = "xyzzy"
}
class Bar(): Foo {
fun test(): String = xyzzy()
}
fun box() {
val bar = new Bar()
val f = bar.test()
return if (f == "xyzzy") "OK" else "fail"
}