fixes #4345
This commit is contained in:
parent
2d8572e948
commit
d455d58af6
2 changed files with 11 additions and 2 deletions
8
tests/ccgbugs/tuplecast.nim
Normal file
8
tests/ccgbugs/tuplecast.nim
Normal file
|
|
@ -0,0 +1,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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue