summary refs log tree commit diff stats
path: root/tests/varres
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2019-07-06 20:09:26 -0700
committerTimothee Cour <timothee.cour2@gmail.com>2019-07-08 15:24:20 -0700
commitb80d70b0f38413d06fb80d3df9296a6be897a278 (patch)
treed01e071f33891c5e7de4780ab63585a268fb46d1 /tests/varres
parenta6526695f0972513913498c7b049a8dfb76814a3 (diff)
downloadNim-b80d70b0f38413d06fb80d3df9296a6be897a278.tar.gz
fix tests
Diffstat (limited to 'tests/varres')
-rw-r--r--tests/varres/tprevent_forloopvar_mutations.nim6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/varres/tprevent_forloopvar_mutations.nim b/tests/varres/tprevent_forloopvar_mutations.nim
index 43cc04f30..398191658 100644
--- a/tests/varres/tprevent_forloopvar_mutations.nim
+++ b/tests/varres/tprevent_forloopvar_mutations.nim
@@ -1,10 +1,12 @@
 discard """
   errmsg: "type mismatch: got <int>"
-  line: 15
+  line: 17
   nimout: '''type mismatch: got <int>
 but expected one of:
 proc inc[T: Ordinal | uint | uint64](x: var T; y = 1)
-  for a 'var' type a variable needs to be passed, but 'i' is immutable
+  first type mismatch at position: 1
+  required type for x: var T: Ordinal or uint or uint64
+  but expression 'i' is immutable, not 'var'
 
 expression: inc i
 '''