set type for symbols from getType()

This commit is contained in:
Billingsly Wetherfordshire
2015-03-27 01:43:28 -05:00
parent e80840c40a
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 =
let sym = newSym(skType, getIdent(name), t.owner, info)
sym.typ = t
result = newSymNode(sym)
result.typ = t