add test for visibility of setter for delegated property (KT-5957)

This commit is contained in:
Dmitry Jemerov
2015-03-04 14:03:42 +01:00
committed by Andrey Breslav
parent e9266481c5
commit b4eb3e0f43
2 changed files with 44 additions and 0 deletions
@@ -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