fixes regression: tactiontable

This commit is contained in:
Araq 2015-10-14 14:35:21 +02:00
commit 3fef9f08bd
2 changed files with 3 additions and 52 deletions

View file

@ -809,6 +809,9 @@ proc semIndirectOp(c: PContext, n: PNode, flags: TExprFlags): PNode =
return semExpr(c, result, flags)
else:
n.sons[0] = semExpr(c, n.sons[0])
let t = n.sons[0].typ
if t != nil and t.kind == tyVar:
n.sons[0] = newDeref(n.sons[0])
let nOrig = n.copyTree
semOpAux(c, n)
var t: PType = nil