JVM_IR KT-47326 downcast field receiver on JvmField lowering
This commit is contained in:
committed by
TeamCityServer
parent
ebc4e10684
commit
c19792e7c5
@@ -0,0 +1,18 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_RUNTIME
|
||||
|
||||
interface A { val x: String }
|
||||
|
||||
open class B(@JvmField override val x: String): A
|
||||
|
||||
open class BB(x: String) : B(x)
|
||||
|
||||
class X(x: String) : A, BB(x) {
|
||||
override val x: String
|
||||
get() = super.x
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val e = X("OK")
|
||||
return e.x
|
||||
}
|
||||
Reference in New Issue
Block a user