Files
kotlin/compiler/testData/codegen/boxWithJava/interfaceDefaultImpls/main.kt
2015-09-30 08:19:51 +03:00

11 lines
163 B
Kotlin
Vendored

interface A {
fun foo() = "OK"
}
fun box(): String {
val result = B.test(object : A {})
if (result != "OK") return "fail: $result"
return "OK"
}