FIR: forbid top-level destructuring declarations #KT-50468 Fixed

This commit is contained in:
Mikhail Glukhikh
2022-03-10 16:11:49 +03:00
committed by Space
parent 6ecc97575d
commit 6b53ac8367
10 changed files with 59 additions and 19 deletions
@@ -0,0 +1,2 @@
FILE: topLevelDestruction.kt
<ERROR TYPE REF: Destructuring declarations are only allowed for local variables/values>
@@ -0,0 +1 @@
val <!SYNTAX!>(x, y)<!> = Pair(1, 2)