always compile with at least O1; bugfix set initialization for interactive mode
This commit is contained in:
parent
6fdb0f034e
commit
0fee9f9924
3 changed files with 18 additions and 5 deletions
|
|
@ -244,6 +244,8 @@ proc getNullValue(typ: PType, info: TLineInfo): PNode =
|
|||
addSon(p, newSymNode(field, info))
|
||||
addSon(p, getNullValue(t.sons[i], info))
|
||||
addSon(result, p)
|
||||
of tySet:
|
||||
result = newNodeIT(nkCurly, info, t)
|
||||
else: InternalError("getNullValue")
|
||||
|
||||
proc evalVar(c: PEvalContext, n: PNode): PNode =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue