summary refs log tree commit diff stats
path: root/compiler/semstmts.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-09-21 21:07:00 +0200
committerAndreas Rumpf <rumpf_a@web.de>2017-09-21 21:07:00 +0200
commit1c0c9d8959909ecf1db0ea689335f3c7baf9a729 (patch)
tree42db68f806d0485c2519d074776cb53f4ed212a8 /compiler/semstmts.nim
parent7db5bad016fa5794b2ec4fe7c6ea4303ecd97c65 (diff)
downloadNim-1c0c9d8959909ecf1db0ea689335f3c7baf9a729.tar.gz
make tests green again
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r--compiler/semstmts.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim
index dbdb543f5..2581c20e5 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))