[FIR] add tests on annotations for delegated getter during implicit type phase

^KT-62874
This commit is contained in:
Dmitrii Gridin
2023-10-24 21:47:14 +02:00
committed by Space Team
parent 11e7500d9e
commit 1b636bf450
13 changed files with 547 additions and 0 deletions
@@ -0,0 +1,15 @@
import kotlin.reflect.KProperty
@get:Anno("getter")
@set:Anno("setter")
@setparam:Anno("parameter")
@delegate:Anno("delegate")
var f<caret>oo by MyDelegate()
@Repeatable
annotation class Anno(val s: String)
class MyDelegate {
operator fun getValue(thisRef: Any?, property: KProperty<*>) = 42
operator fun setValue(thisRef: Any?, property: KProperty<*>, value: Int) {}
}