JVM IR: Don't skip bridge generation for concrete fake overrides
This commit is contained in:
committed by
Georgy Bronnikov
parent
c027c0e659
commit
8746d08dd5
@@ -0,0 +1,12 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
interface A {
|
||||
val result: Any
|
||||
}
|
||||
interface B : A {
|
||||
override val result: String
|
||||
}
|
||||
|
||||
abstract class AImpl<out Self : Any>(override val result: Self) : A
|
||||
class BImpl(result: String) : AImpl<String>(result), B
|
||||
|
||||
fun box(): String = (BImpl("OK") as B).result
|
||||
@@ -1,5 +1,4 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// IGNORE_BACKEND: JVM
|
||||
|
||||
interface I<T> {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// IGNORE_BACKEND: JVM
|
||||
|
||||
interface I<T> {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// IGNORE_BACKEND: JVM
|
||||
|
||||
interface I<T> {
|
||||
|
||||
Reference in New Issue
Block a user