K2: add a BB test confirming work of KT-63588
This commit is contained in:
committed by
Space Team
parent
9d88e90821
commit
584d98cd72
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user