parent
13b1b19a83
commit
9f1c5f64c5
1 changed files with 3 additions and 3 deletions
|
|
@ -477,7 +477,7 @@ proc semLowerLetVarCustomPragma(c: PContext, a: PNode, n: PNode): PNode =
|
||||||
proc semVarOrLet(c: PContext, n: PNode, symkind: TSymKind): PNode =
|
proc semVarOrLet(c: PContext, n: PNode, symkind: TSymKind): PNode =
|
||||||
if n.len == 1:
|
if n.len == 1:
|
||||||
result = semLowerLetVarCustomPragma(c, n[0], n)
|
result = semLowerLetVarCustomPragma(c, n[0], n)
|
||||||
if result!=nil: return result
|
if result != nil: return result
|
||||||
|
|
||||||
var b: PNode
|
var b: PNode
|
||||||
result = copyNode(n)
|
result = copyNode(n)
|
||||||
|
|
@ -513,7 +513,7 @@ proc semVarOrLet(c: PContext, n: PNode, symkind: TSymKind): PNode =
|
||||||
def = fitNode(c, typ, def, def.info)
|
def = fitNode(c, typ, def, def.info)
|
||||||
#changeType(def.skipConv, typ, check=true)
|
#changeType(def.skipConv, typ, check=true)
|
||||||
else:
|
else:
|
||||||
typ = def.typ.skipTypes({tyStatic}).skipIntLit(c.idgen)
|
typ = def.typ.skipTypes({tyStatic, tySink}).skipIntLit(c.idgen)
|
||||||
if typ.kind in tyUserTypeClasses and typ.isResolvedUserTypeClass:
|
if typ.kind in tyUserTypeClasses and typ.isResolvedUserTypeClass:
|
||||||
typ = typ.lastSon
|
typ = typ.lastSon
|
||||||
if hasEmpty(typ):
|
if hasEmpty(typ):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue