fixes another sighashes problem
This commit is contained in:
parent
00a230e5d8
commit
eae1aaa377
3 changed files with 31 additions and 5 deletions
|
|
@ -85,3 +85,16 @@ proc go() =
|
|||
echo "vidx ", $vidx(hg, 1, 2, hiC)
|
||||
|
||||
go()
|
||||
|
||||
# another sighashes problem: In tuples we have to ignore ranges.
|
||||
|
||||
type
|
||||
Position = tuple[x, y: int16]
|
||||
n16 = range[0'i16..high(int16)]
|
||||
|
||||
proc print(pos: Position) =
|
||||
echo $pos.x, ",", $pos.y
|
||||
|
||||
var x = 0.n16
|
||||
var y = 0.n16
|
||||
print((x, y))
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
discard """
|
||||
cmd: "nim cpp $file"
|
||||
output: ""
|
||||
targets: "cpp"
|
||||
"""
|
||||
|
||||
block: #5979
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue