Files
Nim/tests/errmsgs/tassignunpack.nim
metagn ba158d73dc type annotations for variable tuple unpacking, better error messages (#22611)
* type annotations for variable tuple unpacking, better error messages

closes #17989, closes https://github.com/nim-lang/RFCs/issues/339

* update grammar

* fix test
2023-09-01 06:26:53 +02:00

4 lines
109 B
Nim

var a, b = 0
(a, b) = 1 #[tt.Error
^ tuple expected for tuple unpacking, but got 'int literal(1)']#