diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-09-21 21:07:00 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-09-21 21:07:00 +0200 |
commit | 1c0c9d8959909ecf1db0ea689335f3c7baf9a729 (patch) | |
tree | 42db68f806d0485c2519d074776cb53f4ed212a8 /compiler/semstmts.nim | |
parent | 7db5bad016fa5794b2ec4fe7c6ea4303ecd97c65 (diff) | |
download | Nim-1c0c9d8959909ecf1db0ea689335f3c7baf9a729.tar.gz |
make tests green again
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r-- | compiler/semstmts.nim | 1 |
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)) |