diff options
author | Araq <rumpf_a@web.de> | 2014-08-19 20:28:51 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-08-19 20:28:51 +0200 |
commit | 1deb9820f5473afc1469064488f4ed45a2aabb55 (patch) | |
tree | f9d9da752bde565c931330998e907e23a81177b1 /tests | |
parent | 5a2bea7408d98bb951b1c3504d19147d0b419f7a (diff) | |
download | Nim-1deb9820f5473afc1469064488f4ed45a2aabb55.tar.gz |
fixes #1420
Diffstat (limited to 'tests')
-rw-r--r-- | tests/misc/tunsignedcmp.nim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/misc/tunsignedcmp.nim b/tests/misc/tunsignedcmp.nim new file mode 100644 index 000000000..a66fbaae1 --- /dev/null +++ b/tests/misc/tunsignedcmp.nim @@ -0,0 +1,15 @@ +discard """ + output: '''true +true +true''' +""" + +# bug 1420 +import unsigned + +var x = 40'u32 +var y = 30'u32 +echo x > y # works + +echo((40'i32) > (30'i32)) +echo((40'u32) > (30'u32)) # Error: ordinal type expected |