object constructors work now
This commit is contained in:
parent
296e7c9f40
commit
2b4922aea0
5 changed files with 160 additions and 84 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue