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

View File

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