diff options
Diffstat (limited to 'compiler/semexprs.nim')
-rwxr-xr-x | compiler/semexprs.nim | 1 |
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: |