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

23 lines
490 B
Kotlin
Vendored

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// FILE: ExtendsKCWithT.java
public class ExtendsKCWithT extends KC {
public static String bar() {
return new ExtendsKCWithT().foo();
}
}
// FILE: KC.kt
// KT-3407 Implementing (in Java) an abstract Kotlin class that implements a trait does not respect trait method definition
interface T {
fun foo() = "OK"
}
abstract class KC: T {}
fun box() = ExtendsKCWithT.bar()