summary refs log blame commit diff stats
path: root/tests/misc/tunsigned64mod.nim
blob: 9ae0d535a991a3411862ec0ebafca3fd446d573d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                
# bug #1638

import unsigned

let v1 = 7
let v2 = 7'u64

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