'addSon' for types deprecated for 'int literal type' analysis
This commit is contained in:
parent
795afb0021
commit
121d4e0fc2
13 changed files with 49 additions and 33 deletions
|
|
@ -592,7 +592,7 @@ proc evalAddr(c: PEvalContext, n: PNode, flags: TEvalFlags): PNode =
|
|||
if isSpecial(result): return
|
||||
var a = result
|
||||
var t = newType(tyPtr, c.module)
|
||||
addSon(t, a.typ)
|
||||
addSonSkipIntLit(t, a.typ)
|
||||
result = newNodeIT(nkRefTy, n.info, t)
|
||||
addSon(result, a)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue