Added support for {.packed.} pragma on objects
Added tests for packed and union pragmas
This commit is contained in:
parent
261a6ca017
commit
1e45bb79ab
8 changed files with 96 additions and 13 deletions
|
|
@ -204,7 +204,7 @@ proc nMinusOne(n: PNode): PNode =
|
|||
n])
|
||||
|
||||
proc makeRangeWithStaticExpr(c: PContext, n: PNode): PType =
|
||||
let intType = getSysType tyInt
|
||||
let intType = getSysType(tyInt)
|
||||
result = newTypeS(tyRange, c)
|
||||
result.sons = @[intType]
|
||||
result.n = newNode(nkRange, n.info, @[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue