make tests green again

This commit is contained in:
Andreas Rumpf
2017-09-21 21:07:00 +02:00
parent 7db5bad016
commit 1c0c9d8959

View File

@@ -493,6 +493,7 @@ proc fillPartialObject(c: PContext; n: PNode; typ: PType) =
addSon(obj.n, newSymNode(field))
n.sons[0] = makeDeref x
n.sons[1] = newSymNode(field)
n.typ = field.typ
else:
localError(n.info, "implicit object field construction " &
"requires a .partial object, but got " & typeToString(obj))