IR: never check static members for overridability
#KT-66077 Fixed
This commit is contained in:
committed by
Space Team
parent
bdb96dc0db
commit
d4278250e6
+18
@@ -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()
|
||||
Reference in New Issue
Block a user