parent
2ea7287217
commit
f65f760dee
5 changed files with 18 additions and 3 deletions
|
|
@ -526,7 +526,7 @@ proc semVarOrLet(c: PContext, n: PNode, symkind: TSymKind): PNode =
|
|||
else:
|
||||
# BUGFIX: ``fitNode`` is needed here!
|
||||
# check type compatibility between def.typ and typ
|
||||
def = fitNode(c, typ, def, def.info)
|
||||
def = fitNodeForLocalVar(c, typ, def, def.info)
|
||||
#changeType(def.skipConv, typ, check=true)
|
||||
else:
|
||||
typ = def.typ.skipTypes({tyStatic, tySink}).skipIntLit(c.idgen)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue