[LL API] return FirErrorProperty for top level destructuring declaration
KTIJ-23552
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
// WITH_STDLIB
|
||||
var a = -1
|
||||
var b = 0
|
||||
val pair = Pair(a, b)
|
||||
|
||||
val (first, last) = <expr>pair</expr>
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
KT element: KtNameReferenceExpression
|
||||
FIR element: FirErrorPropertyImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
<ERROR TYPE REF: Destructuring declarations are only allowed for local variables/values>
|
||||
Reference in New Issue
Block a user