always compile with at least O1; bugfix set initialization for interactive mode

This commit is contained in:
Araq 2011-03-10 22:12:39 +01:00
commit 0fee9f9924
3 changed files with 18 additions and 5 deletions

View file

@ -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 =