summary refs log blame commit diff stats
path: root/tests/ccgbugs/tuplecast.nim
blob: d60e8c4902501c8bf1f457da7b5ca9c7039da1c1 (plain) (tree)
1
2
3
4
5
6
7
8







                                           
# bug #4345

# only needs to compile
proc f(): tuple[a, b: uint8] = (1'u8, 2'u8)

let a, b = f()
let c = cast[int](b)