Merge pull request #9028 from LemonBoy/fix-8985
Fix locals() interaction with generic types
This commit is contained in:
commit
0930ec72d9
1 changed files with 20 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ proc semLocals*(c: PContext, n: PNode): PNode =
|
|||
{tyVarargs, tyOpenArray, tyTypeDesc, tyStatic, tyExpr, tyStmt, tyEmpty}:
|
||||
|
||||
var field = newSym(skField, it.name, getCurrOwner(c), n.info)
|
||||
field.typ = it.typ.skipTypes({tyGenericInst, tyVar})
|
||||
field.typ = it.typ.skipTypes({tyVar})
|
||||
field.position = counter
|
||||
inc(counter)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue