JVM IR: Don't skip bridge generation for concrete fake overrides

This commit is contained in:
Steven Schäfer
2020-01-10 14:33:40 +01:00
committed by Georgy Bronnikov
parent c027c0e659
commit 8746d08dd5
11 changed files with 49 additions and 5 deletions
@@ -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> {