diff options
author | Billingsly Wetherfordshire <phowl.mouth@gmail.com> | 2015-03-27 01:43:28 -0500 |
---|---|---|
committer | Billingsly Wetherfordshire <phowl.mouth@gmail.com> | 2015-03-27 01:43:28 -0500 |
commit | 1ba785dd745cb0f18527014c0c2c1b2d65129a34 (patch) | |
tree | 0114ff8750df392dc1bfc8a37e1f5fb50a3802ab | |
parent | e80840c40af5c9108e9aed1573cf4f048a2757b8 (diff) | |
download | Nim-1ba785dd745cb0f18527014c0c2c1b2d65129a34.tar.gz |
set type for symbols from getType()
-rw-r--r-- | compiler/vmdeps.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/vmdeps.nim b/compiler/vmdeps.nim index 2b80f6aed..6148ed319 100644 --- a/compiler/vmdeps.nim +++ b/compiler/vmdeps.nim @@ -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 |