diff options
author | Araq <rumpf_a@web.de> | 2014-02-14 02:02:01 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-02-14 02:02:01 +0100 |
commit | 896c96134f47945c497a1a9f38d3d28ca43f119a (patch) | |
tree | d0f24c826854d187b73a3269f2feaa5241f37d80 /compiler | |
parent | a5efe849212162f1b52e4e5257c5cce14938ecbb (diff) | |
download | Nim-896c96134f47945c497a1a9f38d3d28ca43f119a.tar.gz |
fixes #892
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/lookups.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/lookups.nim b/compiler/lookups.nim index c31eb3121..93a7b7c72 100644 --- a/compiler/lookups.nim +++ b/compiler/lookups.nim @@ -32,6 +32,7 @@ proc considerAcc*(n: PNode): PIdent = of nkSym: id.add(x.sym.name.s) else: globalError(n.info, errIdentifierExpected, renderTree(n)) result = getIdent(id) + of nkOpenSymChoice, nkClosedSymChoice: result = n.sons[0].sym.name else: globalError(n.info, errIdentifierExpected, renderTree(n)) |