mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-02 20:14:44 +00:00
fixes #4345
This commit is contained in:
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)
|
||||
Reference in New Issue
Block a user