p[] instead of p^
This commit is contained in:
parent
fc6cc79273
commit
3d696c3da5
12 changed files with 64 additions and 52 deletions
|
|
@ -535,7 +535,7 @@ proc indirectAccess(a, b: PSym): PNode =
|
|||
# returns a^ .b as a node
|
||||
var x = newSymNode(a)
|
||||
var y = newSymNode(b)
|
||||
var deref = newNodeI(nkDerefExpr, x.info)
|
||||
var deref = newNodeI(nkHiddenDeref, x.info)
|
||||
deref.typ = x.typ.sons[0]
|
||||
addSon(deref, x)
|
||||
result = newNodeI(nkDotExpr, x.info)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue