diff options
author | Araq <rumpf_a@web.de> | 2014-04-21 09:18:47 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-04-21 09:18:47 +0200 |
commit | d22506c645852c2ba198e69651447099dd5b341f (patch) | |
tree | 673cb00a248e2c5a87d335b1560426c9fe3a6f71 /compiler | |
parent | 5e839d50b4e671eb37db75df6c5729622f313122 (diff) | |
download | Nim-d22506c645852c2ba198e69651447099dd5b341f.tar.gz |
fixes #847
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/semtypinst.nim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/semtypinst.nim b/compiler/semtypinst.nim index 271a01266..33de40f34 100644 --- a/compiler/semtypinst.nim +++ b/compiler/semtypinst.nim @@ -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 |