This commit is contained in:
Araq 2014-04-21 09:18:47 +02:00
commit d22506c645

View file

@ -352,8 +352,9 @@ proc replaceTypeVarsTAux(cl: var TReplTypeVars, t: PType): PType =
result = handleGenericInvokation(cl, t) result = handleGenericInvokation(cl, t)
of tyGenericBody: of tyGenericBody:
internalError(cl.info, "ReplaceTypeVarsT: tyGenericBody" ) localError(cl.info, errCannotInstantiateX, typeToString(t))
result = replaceTypeVarsT(cl, lastSon(t)) result = t
#result = replaceTypeVarsT(cl, lastSon(t))
of tyFromExpr: of tyFromExpr:
if cl.allowMetaTypes: return if cl.allowMetaTypes: return