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
|
|
@ -921,7 +921,7 @@ const tyTypeParamsHolders = {tyGenericInst, tyCompositeTypeClass}
|
|||
proc readTypeParameter(c: PContext, typ: PType,
|
||||
paramName: PIdent, info: TLineInfo): PNode =
|
||||
let ty = if typ.kind == tyGenericInst: typ.skipGenericAlias
|
||||
else: (internalAssert typ.kind == tyCompositeTypeClass; typ.sons[1])
|
||||
else: (internalAssert(typ.kind == tyCompositeTypeClass); typ.sons[1])
|
||||
|
||||
let tbody = ty.sons[0]
|
||||
for s in countup(0, tbody.len-2):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue