From f2cdbc92eb2aead4b7ee4c8a9156e17edc2edd9c Mon Sep 17 00:00:00 2001 From: Araq Date: Wed, 25 Feb 2015 20:32:32 +0100 Subject: fixes #2215 --- compiler/seminst.nim | 21 +++++++++++---------- compiler/semtempl.nim | 2 +- 2 files changed, 12 insertions(+), 11 deletions(-) (limited to 'compiler') diff --git a/compiler/seminst.nim b/compiler/seminst.nim index d74584096..a10f27519 100644 --- a/compiler/seminst.nim +++ b/compiler/seminst.nim @@ -80,13 +80,9 @@ proc freshGenSyms(n: PNode, owner: PSym, symMap: var TIdTable) = let s = n.sym var x = PSym(idTableGet(symMap, s)) if x == nil: - if s.kind == skParam: - x = owner.typ.n[s.position+1].sym - internalAssert x.kind == skParam - else: - x = copySym(s, false) - x.owner = owner - idTablePut(symMap, s, x) + x = copySym(s, false) + x.owner = owner + idTablePut(symMap, s, x) n.sym = x else: for i in 0 .. 0: -- cgit 1.4.1-2-gfad0