d450e3074b
Split members into static/non-static, and only build fake overrides for inherited static members of classes. #KT-65276 Fixed #KT-65277 Fixed
21 lines
351 B
Kotlin
Vendored
21 lines
351 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// JVM_TARGET: 1.8
|
|
// FILE: A.java
|
|
public class A {
|
|
protected String foo() { return "OK"; }
|
|
}
|
|
|
|
// FILE: B.java
|
|
public interface B {
|
|
static String foo() { return "Fail"; }
|
|
}
|
|
|
|
// FILE: box.kt
|
|
class C : A(), B {
|
|
override fun foo(): String = super.foo()
|
|
|
|
fun test(): String = foo()
|
|
}
|
|
|
|
fun box(): String = C().test()
|