JVM_IR: generate accessors for inherited abstract members too

#KT-41468 Fixed
This commit is contained in:
pyos
2020-10-07 10:45:12 +02:00
committed by Alexander Udalov
parent 68157f09fa
commit dd1682510f
9 changed files with 53 additions and 1 deletions
@@ -0,0 +1,17 @@
// FILE: 1.kt
import a.*
abstract class B : A() {
fun g() = { f() }()
}
fun box() = object : B() {
override fun f(): String = "OK"
}.g()
// FILE: 2.kt
package a
abstract class A {
protected abstract fun f(): String
}