Files
kotlin/compiler/testData/codegen/java8/boxWithJava/inheritKotlin/defaultCall.kt
2015-05-13 14:52:18 +03:00

23 lines
344 B
Kotlin

trait KTrait {
fun test(): String {
return "base";
}
}
class Test : Simple {
fun bar(): String {
return super.test()
}
}
fun box(): String {
val test = Test().test()
if (test != "simple") return "fail $test"
val bar = Test().bar()
if (bar != "simple") return "fail 2 $bar"
return "OK"
}