use typeof instead type (#16962)
This commit is contained in:
parent
4fac8af0c9
commit
d447c0fe3f
31 changed files with 253 additions and 253 deletions
|
|
@ -68,7 +68,7 @@ template odd*(i: int) : untyped =
|
|||
|
||||
proc vidx(hg: HexGrid; col, row: int; i: HexVtxIndex) : Index =
|
||||
#NOTE: this variation compiles
|
||||
#var offset : type(evenSharingOffsets[i])
|
||||
#var offset : typeof(evenSharingOffsets[i])
|
||||
#
|
||||
#if odd(col):
|
||||
# offset = oddSharingOffsets[i]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue