Files
kotlin/compiler/testData/codegen/java8/boxWithJava/defaultMethodCallFromTrait/defaultCall.kt
2015-09-22 15:00:24 +02:00

14 lines
245 B
Kotlin
Vendored

interface KTrait : Simple {
fun bar(): String {
return test("O") + Simple.testStatic("O")
}
}
class Test : KTrait {}
fun box(): String {
val test = Test().bar()
if (test != "OKOK") return "fail $test"
return "OK"
}