KT-9717, KT-9603:
pass getter/setter-related flags to AccessorForPropertyDescriptor
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
public var OK: String = "OK"
|
||||
private set
|
||||
@@ -0,0 +1,5 @@
|
||||
object Test {
|
||||
val test: String = OK
|
||||
}
|
||||
|
||||
fun box(): String = Test.test
|
||||
@@ -0,0 +1,8 @@
|
||||
package a
|
||||
|
||||
import b.*
|
||||
|
||||
fun box(): String {
|
||||
BB().ok()
|
||||
return BB().OK
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package b
|
||||
|
||||
public open class B {
|
||||
public var OK: String = "OK"
|
||||
protected set
|
||||
}
|
||||
|
||||
public class BB : B() {
|
||||
public fun ok(): String = OK
|
||||
}
|
||||
Reference in New Issue
Block a user