parent
ae342f84de
commit
03653ab61e
2 changed files with 13 additions and 1 deletions
|
|
@ -498,7 +498,7 @@ proc semVarOrLet(c: PContext, n: PNode, symkind: TSymKind): PNode =
|
|||
def = fitNode(c, typ, def, def.info)
|
||||
#changeType(def.skipConv, typ, check=true)
|
||||
else:
|
||||
typ = skipIntLit(def.typ)
|
||||
typ = def.typ.skipTypes({tyStatic}).skipIntLit
|
||||
if typ.kind in tyUserTypeClasses and typ.isResolvedUserTypeClass:
|
||||
typ = typ.lastSon
|
||||
if hasEmpty(typ):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue