[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
This commit is contained in:
Dmitrii Gridin
2024-02-09 19:35:37 +01:00
committed by Space Team
parent 9ca0bdcb80
commit 792af849df
3 changed files with 64 additions and 0 deletions
@@ -0,0 +1,8 @@
// 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)