object constructors work now

This commit is contained in:
Araq 2013-03-08 01:19:47 +01:00
commit 2b4922aea0
5 changed files with 160 additions and 84 deletions

View file

@ -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: