summary refs log tree commit diff stats
path: root/tests/varres/tprevent_forloopvar_mutations.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/varres/tprevent_forloopvar_mutations.nim')
-rw-r--r--tests/varres/tprevent_forloopvar_mutations.nim9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/varres/tprevent_forloopvar_mutations.nim b/tests/varres/tprevent_forloopvar_mutations.nim
index 398191658..c9aeb94d8 100644
--- a/tests/varres/tprevent_forloopvar_mutations.nim
+++ b/tests/varres/tprevent_forloopvar_mutations.nim
@@ -1,11 +1,10 @@
 discard """
-  errmsg: "type mismatch: got <int>"
-  line: 17
-  nimout: '''type mismatch: got <int>
+  errormsg: "type mismatch: got <int>"
+  nimout: '''tprevent_forloopvar_mutations.nim(16, 3) Error: type mismatch: got <int>
 but expected one of:
-proc inc[T: Ordinal | uint | uint64](x: var T; y = 1)
+proc inc[T, V: Ordinal](x: var T; y: V = 1)
   first type mismatch at position: 1
-  required type for x: var T: Ordinal or uint or uint64
+  required type for x: var T: Ordinal
   but expression 'i' is immutable, not 'var'
 
 expression: inc i