add test for visibility of setter for delegated property (KT-5957)
This commit is contained in:
committed by
Andrey Breslav
parent
e9266481c5
commit
b4eb3e0f43
@@ -0,0 +1,16 @@
|
||||
class MyClass() {
|
||||
public var x: Int by Delegate()
|
||||
private set
|
||||
}
|
||||
|
||||
class Delegate {
|
||||
fun get(t: Any?, p: PropertyMetadata): Int {
|
||||
return 1
|
||||
}
|
||||
|
||||
fun set(t: Any?, p: PropertyMetadata, i: Int) {}
|
||||
}
|
||||
|
||||
// TESTED_OBJECT_KIND: function
|
||||
// TESTED_OBJECTS: MyClass, setX
|
||||
// FLAGS: ACC_FINAL, ACC_PRIVATE
|
||||
Reference in New Issue
Block a user