summary refs log tree commit diff stats
path: root/tests/errmsgs/tassignunpack.nim
diff options
context:
space:
mode:
authormetagn <metagngn@gmail.com>2023-09-01 07:26:53 +0300
committerGitHub <noreply@github.com>2023-09-01 06:26:53 +0200
commitba158d73dc23fb6e61ebe88f6485f95c8dcb96c2 (patch)
treeb81216df57196946115e4219322b712ddefa5d79 /tests/errmsgs/tassignunpack.nim
parentb3912c25d3dcb78bc1c8f7d6acc3c512964d3ea8 (diff)
downloadNim-ba158d73dc23fb6e61ebe88f6485f95c8dcb96c2.tar.gz
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
Diffstat (limited to 'tests/errmsgs/tassignunpack.nim')
-rw-r--r--tests/errmsgs/tassignunpack.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/errmsgs/tassignunpack.nim b/tests/errmsgs/tassignunpack.nim
index d74e16dd5..09d928a54 100644
--- a/tests/errmsgs/tassignunpack.nim
+++ b/tests/errmsgs/tassignunpack.nim
@@ -1,3 +1,3 @@
 var a, b = 0
 (a, b) = 1 #[tt.Error
-         ^ 'tuple' expected]#
+         ^ tuple expected for tuple unpacking, but got 'int literal(1)']#