d73d3c46e2
#KT-56386 Fixed Co-authored-by: Mikhail Glukhikh <Mikhail.Glukhikh@jetbrains.com>
40 lines
436 B
Kotlin
Vendored
40 lines
436 B
Kotlin
Vendored
// TARGET_BACKEND: JVM_IR
|
|
// IGNORE_BACKEND_K1: JVM_IR
|
|
// CHECK_BYTECODE_TEXT
|
|
|
|
// FILE: Y.java
|
|
|
|
package base;
|
|
|
|
class Y {
|
|
public String f = "OK";
|
|
}
|
|
|
|
// FILE: A.java
|
|
|
|
package base;
|
|
|
|
public class A extends Y {}
|
|
|
|
// FILE: B.kt
|
|
|
|
package base
|
|
|
|
open class B : A() {
|
|
private val f = "FAIL"
|
|
}
|
|
|
|
// FILE: C.java
|
|
|
|
import base.B;
|
|
|
|
public class C extends B {}
|
|
|
|
// FILE: test.kt
|
|
|
|
fun box(): String {
|
|
return C().f
|
|
}
|
|
|
|
// 1 GETFIELD base/A.f
|