diff options
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/jsgen.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/jsgen.nim b/compiler/jsgen.nim index 70398a241..f802a7263 100644 --- a/compiler/jsgen.nim +++ b/compiler/jsgen.nim @@ -1173,6 +1173,7 @@ proc genDeref(p: PProc, n: PNode, r: var TCompRes) = else: var a: TCompRes gen(p, n.sons[0], a) + r.kind = resExpr if a.typ == etyBaseIndex: r.res = "$1[$2]" % [a.address, a.res] elif n.sons[0].kind == nkCall: |