summary refs log tree commit diff stats
path: root/tests/varres
diff options
context:
space:
mode:
authorkonsumlamm <44230978+konsumlamm@users.noreply.github.com>2023-08-05 18:38:46 +0200
committerGitHub <noreply@github.com>2023-08-06 00:38:46 +0800
commite15e19308ea3f85ee746cd2946f9acde94b71e34 (patch)
treebe7d7a818df714a9970b5ec3adb43db8f3d6e914 /tests/varres
parent873eaa3f65f9ef96f3dc4430e8938d273f04f8e9 (diff)
downloadNim-e15e19308ea3f85ee746cd2946f9acde94b71e34.tar.gz
Revert adding generic `V: Ordinal` parameter to `succ`, `pred`, `inc`, `dec` (#22328)
* Use `int` in `digitsutils`, `dragonbox`, `schubfach`

* Fix error message
Diffstat (limited to 'tests/varres')
-rw-r--r--tests/varres/tprevent_forloopvar_mutations.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/varres/tprevent_forloopvar_mutations.nim b/tests/varres/tprevent_forloopvar_mutations.nim
index c9aeb94d8..b27c327a9 100644
--- a/tests/varres/tprevent_forloopvar_mutations.nim
+++ b/tests/varres/tprevent_forloopvar_mutations.nim
@@ -2,7 +2,7 @@ discard """
   errormsg: "type mismatch: got <int>"
   nimout: '''tprevent_forloopvar_mutations.nim(16, 3) Error: type mismatch: got <int>
 but expected one of:
-proc inc[T, V: Ordinal](x: var T; y: V = 1)
+proc inc[T: Ordinal](x: var T; y: int = 1)
   first type mismatch at position: 1
   required type for x: var T: Ordinal
   but expression 'i' is immutable, not 'var'