Files
kotlin-fork/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/destructuringAnnotation.kts
T
Dmitrii Gridin 792af849df [LL FIR] add getOrBuildFir test on destructuring declaration annotation
It doesn't resolve the property as it is treated as a local one

^KT-62840
2024-02-14 16:16:01 +00:00

9 lines
247 B
Kotlin
Vendored

// LOOK_UP_FOR_ELEMENT_OF_TYPE: org.jetbrains.kotlin.psi.KtAnnotationEntry
data class MyPair(val a: Int, val b: Int)
const val prop = 0
annotation class DestrAnno(val s: String)
<expr>@DestrAnno("destr 1 $prop")</expr>
val (a, b) = MyPair(1, 2)