cd409abfd8
After the fix, it's at least consistent with what generated for other fake overrides. ^KT-61386
30 lines
579 B
Kotlin
Vendored
30 lines
579 B
Kotlin
Vendored
// TARGET_BACKEND: JVM_IR
|
|
// DUMP_IR
|
|
// FILE: javapackage/PackagePrivateGrandparentInterface.java
|
|
|
|
package javapackage;
|
|
|
|
/*package-private*/ interface PackagePrivateGrandparentInterface {
|
|
String publicStaticField = "OK";
|
|
}
|
|
|
|
// FILE: javapackage/PublicParentClass.java
|
|
|
|
package javapackage;
|
|
|
|
public class PublicParentClass implements PackagePrivateGrandparentInterface {}
|
|
|
|
// FILE: Child.kt
|
|
|
|
import javapackage.PublicParentClass
|
|
|
|
class Child : PublicParentClass() {
|
|
fun foo(): String {
|
|
return publicStaticField
|
|
}
|
|
}
|
|
|
|
// FILE: test.kt
|
|
|
|
fun box() = Child().foo()
|