[FIR] Fix invalid expression throwing exception when determining type

^KTIJ-25421 fixed

Merge-request: KT-MR-10290
Merged-by: Egor Kulikov <Egor.Kulikov@jetbrains.com>
This commit is contained in:
Egor Kulikov
2023-05-25 12:29:46 +00:00
committed by Space Team
parent 83f2c2e1f0
commit 5e38c2d570
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>