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)
|
||||
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue