[FIR] Forbid annotations on anonymous initializers and destructuring declarations

#KT-59896


Merge-request: KT-MR-13197
Merged-by: Evgeniy Zhelenskiy <Evgeniy.Zhelenskiy@jetbrains.com>
This commit is contained in:
Evgeniy.Zhelenskiy
2023-11-28 11:59:26 +00:00
committed by Space Team
parent e901629cf0
commit 5258e2044d
9 changed files with 10 additions and 40 deletions
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
fun test(): Any? {
<!WRONG_ANNOTATION_TARGET!>@ann<!> val (a, b) = P(1, 1)
return a + b