Fix the compilation of the emmy package

This commit is contained in:
Zahary Karadjov
2017-03-28 01:58:54 +03:00
parent b32576a59c
commit 01bc5f32d6

View File

@@ -500,6 +500,8 @@ proc semVarOrLet(c: PContext, n: PNode, symkind: TSymKind): PNode =
#changeType(def.skipConv, typ, check=true)
else:
typ = skipIntLit(def.typ)
if typ.kind in tyUserTypeClasses and typ.isResolvedUserTypeClass:
typ = typ.lastSon
if hasEmpty(typ):
localError(def.info, errCannotInferTypeOfTheLiteral,
($typ.kind).substr(2).toLowerAscii)