fixes #1420
This commit is contained in:
parent
5a2bea7408
commit
1deb9820f5
2 changed files with 16 additions and 1 deletions
15
tests/misc/tunsignedcmp.nim
Normal file
15
tests/misc/tunsignedcmp.nim
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue