summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2024-01-13 21:09:34 +0800
committerGitHub <noreply@github.com>2024-01-13 14:09:34 +0100
commitab4278d2179639f19967431a7aa1be858046f7a7 (patch)
tree49271826ce4eea52eb707f3fb27b12f08def0f2a /tests
parent8484abc2e498bd9738097c06362d442c615a8264 (diff)
downloadNim-ab4278d2179639f19967431a7aa1be858046f7a7.tar.gz
fixes #23180; fixes #19805; prohibits invalid tuple unpacking code in for loop (#23185)
fixes #23180
fixes #19805
Diffstat (limited to 'tests')
-rw-r--r--tests/errmsgs/t17460.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/errmsgs/t17460.nim b/tests/errmsgs/t17460.nim
index e377bc48a..bb8e21198 100644
--- a/tests/errmsgs/t17460.nim
+++ b/tests/errmsgs/t17460.nim
@@ -1,6 +1,6 @@
 discard """
   cmd: "nim check $options $file"
-  errormsg: "wrong number of variables"
+  errormsg: "tuple expected for tuple unpacking, but got 'array[0..2, int]'"
 """
 
 iterator xclusters*[T](a: openArray[T]; s: static[int]): array[s, T] {.inline.} =
@@ -16,4 +16,4 @@ proc m =
   for (i, j, k) in xclusters([1, 2, 3, 4, 5], 3):
     echo i, j, k
 
-m()
\ No newline at end of file
+m()