diff options
author | Araq <rumpf_a@web.de> | 2014-11-20 21:02:51 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-11-20 21:02:51 +0100 |
commit | bb532a697edad1bac60a87a7ff43956c9635973d (patch) | |
tree | ccdf1750dd76c17737096a0a19a46065fbef48e8 /compiler/sem.nim | |
parent | 3215666e33846db87e3b3ac1b6ab51a14f7b6912 (diff) | |
download | Nim-bb532a697edad1bac60a87a7ff43956c9635973d.tar.gz |
fixes #1562, fixes #1543
Diffstat (limited to 'compiler/sem.nim')
-rw-r--r-- | compiler/sem.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/sem.nim b/compiler/sem.nim index 81846e1b4..5b31129a5 100644 --- a/compiler/sem.nim +++ b/compiler/sem.nim @@ -142,8 +142,8 @@ proc newSymS(kind: TSymKind, n: PNode, c: PContext): PSym = proc newSymG*(kind: TSymKind, n: PNode, c: PContext): PSym = # like newSymS, but considers gensym'ed symbols if n.kind == nkSym: + # and sfGenSym in n.sym.flags: result = n.sym - internalAssert sfGenSym in result.flags internalAssert result.kind == kind # when there is a nested proc inside a template, semtmpl # will assign a wrong owner during the first pass over the |