Avoid getting invisible_fake visibility for properties in ExpressionCodegen
Before this change, we were computing the visibility of an inherited
private property setter, and ISE at AsmUtil.getVisibilityAccessFlag
happened ("invisible_fake is not a valid visibility in backend")
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
open class A {
|
||||
lateinit var x: String
|
||||
private set
|
||||
|
||||
protected fun set(value: String) { x = value }
|
||||
}
|
||||
|
||||
class B : A() {
|
||||
fun init() { set("OK") }
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val b = B()
|
||||
b.init()
|
||||
return b.x
|
||||
}
|
||||
Reference in New Issue
Block a user