Files
kotlin-fork/compiler/testData/codegen/box/javaInterop/statics/inheritTwoStaticMethods2.kt
T
Alexander Udalov d4278250e6 IR: never check static members for overridability
#KT-66077 Fixed
2024-02-26 20:38:02 +00:00

19 lines
279 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// FILE: A.java
public class A {
public static String f(Long x) {
return "Fail";
}
public static String f(long x) {
return "OK";
}
}
// FILE: 1.kt
class B : A() {
fun g(): String = f(0L)
}
fun box(): String = B().g()