IR: never check static members for overridability

#KT-66077 Fixed
This commit is contained in:
Alexander Udalov
2024-02-26 12:20:32 +01:00
committed by Space Team
parent bdb96dc0db
commit d4278250e6
13 changed files with 95 additions and 10 deletions
@@ -0,0 +1,18 @@
// 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()