Files
kotlin/compiler/testData/codegen/box/traits/inheritJavaInterface.kt
2016-11-09 21:41:12 +03:00

24 lines
335 B
Kotlin
Vendored

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// FILE: MyInt.java
public interface MyInt {
String test();
}
// FILE: test.kt
interface A : MyInt {
override public fun test(): String? {
return "OK"
}
}
class B: A
fun box() : String {
return B().test()!!
}