From 1c0c9d8959909ecf1db0ea689335f3c7baf9a729 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 21 Sep 2017 21:07:00 +0200 Subject: [PATCH] make tests green again --- compiler/semstmts.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index dbdb543f5c..2581c20e51 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -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))