make more things compile without isNil

This commit is contained in:
Araq 2018-08-22 15:12:02 +02:00
commit dbd21d670c
3 changed files with 3 additions and 4 deletions

View file

@ -66,8 +66,7 @@ proc caseTree(lvl: int = 0): PCaseNode =
proc finalizeNode(n: PNode) =
assert(n != nil)
write(stdout, "finalizing: ")
if isNil(n.data): writeLine(stdout, "nil!")
else: writeLine(stdout, "not nil")
writeLine(stdout, "not nil")
var
id: int = 1