Files
kotlin-fork/compiler/testData/ir/irText/declarations/annotations/delegatedPropertyAccessorsWithAnnotations.kt
T
Mikhail Glukhikh 20cb075e56 K2: fix calculating property reference type in delegated setter
This commit is an accidentally forgotten part of the KT-61045 fix
#KT-61720 Fixed
2023-09-08 15:35:10 +00:00

19 lines
383 B
Kotlin
Vendored

// FIR_IDENTICAL
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)