summary refs log tree commit diff stats
path: root/compiler/semexprs.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/semexprs.nim')
-rwxr-xr-xcompiler/semexprs.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim
index 762a1973f..0fd117132 100755
--- a/compiler/semexprs.nim
+++ b/compiler/semexprs.nim
@@ -1557,6 +1557,7 @@ proc semObjConstr(c: PContext, n: PNode): PNode =
   var t = semTypeNode(c, n.sons[0], nil)
   result = n
   result.typ = t
+  result.kind = nkObjConstr
   t = skipTypes(t, abstractInst)
   if t.kind == tyRef: t = skipTypes(t.sons[0], abstractInst)
   if t.kind != tyObject: