[FIR] Fix error with incorrect destructing declaration

^KTIJ-25342 fixed
This commit is contained in:
Egor Kulikov
2023-05-23 12:48:41 +02:00
parent 6f7fc14695
commit b47910e86b
7 changed files with 58 additions and 13 deletions
@@ -0,0 +1 @@
val (<expr>o</expr>, r)
@@ -0,0 +1,6 @@
KT element: KtDestructuringDeclarationEntry
FIR element: FirErrorPropertyImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
<ERROR PROPERTY: Destructuring declarations are only allowed for local variables/values>