fixes #847
This commit is contained in:
parent
5e839d50b4
commit
d22506c645
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue