round out tuple unpacking assignment, support underscores (#22537)

* round out tuple unpacking assignment, support underscores

fixes #18710

* fix test messages

* use discard instead of continue

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>

---------

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
(cherry picked from commit 53d43e9671)
This commit is contained in:
metagn
2023-08-24 07:11:48 +03:00
committed by narimiran
parent c39a0139fc
commit 0d02bee23f
7 changed files with 60 additions and 33 deletions

View File

@@ -1,5 +1,5 @@
discard """
errormsg: "invalid type: 'empty' in this context: '(seq[empty], (seq[empty], set[empty]))' for let"
errormsg: "cannot infer the type of the tuple"
file: "tassignemptytuple.nim"
line: 11
"""