set type for symbols from getType()

This commit is contained in:
Billingsly Wetherfordshire 2015-03-27 01:43:28 -05:00
commit 1ba785dd74

View file

@ -42,6 +42,7 @@ proc opSlurp*(file: string, info: TLineInfo, module: PSym): string =
proc atomicTypeX(name: string; t: PType; info: TLineInfo): PNode = proc atomicTypeX(name: string; t: PType; info: TLineInfo): PNode =
let sym = newSym(skType, getIdent(name), t.owner, info) let sym = newSym(skType, getIdent(name), t.owner, info)
sym.typ = t
result = newSymNode(sym) result = newSymNode(sym)
result.typ = t result.typ = t