K2: add a BB test confirming work of KT-63588

This commit is contained in:
Mikhail Glukhikh
2024-03-05 09:15:30 +01:00
committed by Space Team
parent 9d88e90821
commit 584d98cd72
11 changed files with 87 additions and 0 deletions
@@ -0,0 +1,28 @@
// TARGET_BACKEND: JVM_IR
// IGNORE_CODEGEN_WITH_FIR2IR_FAKE_OVERRIDE_GENERATION: JVM_IR
// ISSUE: KT-63588
// FILE: Base.java
public class Base {
public String getBounds() { return ""; }
}
// FILE: Intermediate.java
public class Intermediate extends Base {}
// FILE: Final.java
public class Final extends Intermediate implements WithBounds {}
// FILE: Main.kt
interface WithBounds {
val bounds: String
}
fun foo(arg: Final) {
arg.bounds
}
fun box(): String {
foo(Final())
return "OK"
}