[FIR] Correctly process invalid destructing declarations

^KTIJ-24730 fixed

Merge-request: KT-MR-10712
Merged-by: Egor Kulikov <Egor.Kulikov@jetbrains.com>
This commit is contained in:
Egor Kulikov
2023-06-27 09:54:01 +00:00
committed by Space Team
parent a9d0ff83cf
commit a7c1f53af8
12 changed files with 71 additions and 5 deletions
@@ -0,0 +1,9 @@
// UNRESOLVED_REFERENCE
fun <T : Any, Z> createTuple(a: T, b: Z&Any): Pair<T, Z&Any> {
return Pair(a, b)
}
fun main()
var (<caret>val1, val2) = createTuple<String, Int?>("a", 1)
}