Fix the compilation of the emmy package
This commit is contained in:
parent
b32576a59c
commit
01bc5f32d6
1 changed files with 2 additions and 0 deletions
|
|
@ -500,6 +500,8 @@ proc semVarOrLet(c: PContext, n: PNode, symkind: TSymKind): PNode =
|
||||||
#changeType(def.skipConv, typ, check=true)
|
#changeType(def.skipConv, typ, check=true)
|
||||||
else:
|
else:
|
||||||
typ = skipIntLit(def.typ)
|
typ = skipIntLit(def.typ)
|
||||||
|
if typ.kind in tyUserTypeClasses and typ.isResolvedUserTypeClass:
|
||||||
|
typ = typ.lastSon
|
||||||
if hasEmpty(typ):
|
if hasEmpty(typ):
|
||||||
localError(def.info, errCannotInferTypeOfTheLiteral,
|
localError(def.info, errCannotInferTypeOfTheLiteral,
|
||||||
($typ.kind).substr(2).toLowerAscii)
|
($typ.kind).substr(2).toLowerAscii)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue