From 6e53300f83dc7646fbad834c494c34470a393885 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Sun, 3 Apr 2016 22:51:22 +0200 Subject: fixes #3973 --- compiler/vmgen.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/vmgen.nim') diff --git a/compiler/vmgen.nim b/compiler/vmgen.nim index 47f16a013..43c7ca2db 100644 --- a/compiler/vmgen.nim +++ b/compiler/vmgen.nim @@ -1447,12 +1447,12 @@ proc getNullValue(typ: PType, info: TLineInfo): PNode = of tyObject: result = newNodeIT(nkObjConstr, info, t) result.add(newNodeIT(nkEmpty, info, t)) - getNullValueAux(t.n, result) # initialize inherited fields: var base = t.sons[0] while base != nil: getNullValueAux(skipTypes(base, skipPtrs).n, result) base = base.sons[0] + getNullValueAux(t.n, result) of tyArray, tyArrayConstr: result = newNodeIT(nkBracket, info, t) for i in countup(0, int(lengthOrd(t)) - 1): -- cgit 1.4.1-2-gfad0