JVM_IR: generate accessors for inherited abstract members too
#KT-41468 Fixed
This commit is contained in:
+17
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user