diff options
author | Araq <rumpf_a@web.de> | 2015-10-14 14:35:21 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-10-14 14:35:44 +0200 |
commit | 3fef9f08bd6cab91b996df89585cb0d781879b8f (patch) | |
tree | b3df6d50d4ab2b186a860a3b3d43e56cf4093b12 /compiler/semexprs.nim | |
parent | 5a02230bf97c96cf4f74ed99024148476f9a2588 (diff) | |
download | Nim-3fef9f08bd6cab91b996df89585cb0d781879b8f.tar.gz |
fixes regression: tactiontable
Diffstat (limited to 'compiler/semexprs.nim')
-rw-r--r-- | compiler/semexprs.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index 4792702dc..664102b75 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -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 |