summary refs log tree commit diff stats
path: root/tests/misc/tunsigned64mod.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-04-21 11:55:06 +0200
committerAraq <rumpf_a@web.de>2015-04-22 12:04:09 +0200
commitc69d74818eb823c47bfc2f6dae6a4742517a0962 (patch)
tree1c7d0b35beae7ee6d03846827dbb34a40ab263af /tests/misc/tunsigned64mod.nim
parent2f973c783c5e873acfc5ccef8ffe91b53e846bf0 (diff)
downloadNim-c69d74818eb823c47bfc2f6dae6a4742517a0962.tar.gz
fixes #2550
Diffstat (limited to 'tests/misc/tunsigned64mod.nim')
-rw-r--r--tests/misc/tunsigned64mod.nim14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/misc/tunsigned64mod.nim b/tests/misc/tunsigned64mod.nim
index 9ae0d535a..3007405a2 100644
--- a/tests/misc/tunsigned64mod.nim
+++ b/tests/misc/tunsigned64mod.nim
@@ -10,3 +10,17 @@ let t1 = v1 mod 2 # works
 let t2 = 7'u64 mod 2'u64 # works
 let t3 = v2 mod 2'u64 # Error: invalid type: 'range 0..1(uint64)
 let t4 = (v2 mod 2'u64).uint64 # works
+
+# bug #2550
+
+var x: uint # doesn't work
+echo x mod 2 == 0
+
+var y: uint64 # doesn't work
+echo y mod 2 == 0
+
+var z: uint32 # works
+echo z mod 2 == 0
+
+var a: int # works
+echo a mod 2 == 0