More annotation generation for declarations with test cases

This commit is contained in:
Dmitry Petrov
2018-04-05 13:48:21 +03:00
parent fdd8b7ae6c
commit e6baf0296d
39 changed files with 1306 additions and 56 deletions
@@ -0,0 +1,17 @@
annotation class A(val x: String)
class Cell(var value: Int) {
operator fun getValue(thisRef: Any?, kProp: Any?) = value
operator fun setValue(thisRef: Any?, kProp: Any?, newValue: Int) {
value = newValue
}
}
@get:A("test1.get")
val test1 by Cell(1)
@get:A("test2.get")
@set:A("test2.set")
@setparam:A("test2.set.param")
var test2 by Cell(2)