remerge "allow void as field type"
This commit is contained in:
parent
6ddd4e6a3f
commit
19eeb3556e
2 changed files with 43 additions and 27 deletions
|
|
@ -437,8 +437,9 @@ proc genRecordFieldsAux(m: BModule, n: PNode,
|
|||
app(result, genRecordFieldsAux(m, k, ae, rectype, check))
|
||||
else: internalError("genRecordFieldsAux(record case branch)")
|
||||
appf(result, "} $1;$n", [uname])
|
||||
of nkSym:
|
||||
of nkSym:
|
||||
field = n.sym
|
||||
if field.typ.kind == tyEmpty: return
|
||||
#assert(field.ast == nil)
|
||||
sname = mangleRecFieldName(field, rectype)
|
||||
if accessExpr != nil: ae = ropef("$1.$2", [accessExpr, sname])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue