fixes #4110
This commit is contained in:
parent
11d0f3f7ec
commit
685b8963da
2 changed files with 3 additions and 2 deletions
|
|
@ -95,7 +95,7 @@ proc getCurrOwner(c: PTransf): PSym =
|
|||
|
||||
proc newTemp(c: PTransf, typ: PType, info: TLineInfo): PNode =
|
||||
let r = newSym(skTemp, getIdent(genPrefix), getCurrOwner(c), info)
|
||||
r.typ = skipTypes(typ, {tyGenericInst})
|
||||
r.typ = typ #skipTypes(typ, {tyGenericInst})
|
||||
incl(r.flags, sfFromGeneric)
|
||||
let owner = getCurrOwner(c)
|
||||
if owner.isIterator and not c.tooEarly:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue