diff options
author | Araq <rumpf_a@web.de> | 2012-07-29 23:08:28 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-07-29 23:08:28 +0200 |
commit | b595fc834735be1edb31a487464eb447c45d20c4 (patch) | |
tree | c5449c63a44e2914c7104fcbae07ad503863af44 /compiler/semtypinst.nim | |
parent | feaf6509bda7436663e8311739668acd045cd741 (diff) | |
download | Nim-b595fc834735be1edb31a487464eb447c45d20c4.tar.gz |
better error handling for better idetools support
Diffstat (limited to 'compiler/semtypinst.nim')
-rwxr-xr-x | compiler/semtypinst.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/semtypinst.nim b/compiler/semtypinst.nim index 8cd7c3d1a..d75594dff 100755 --- a/compiler/semtypinst.nim +++ b/compiler/semtypinst.nim @@ -119,7 +119,8 @@ proc ReplaceTypeVarsS(cl: var TReplTypeVars, s: PSym): PSym = proc lookupTypeVar(cl: TReplTypeVars, t: PType): PType = result = PType(idTableGet(cl.typeMap, t)) if result == nil: - GlobalError(t.sym.info, errCannotInstantiateX, typeToString(t)) + LocalError(t.sym.info, errCannotInstantiateX, typeToString(t)) + result = errorType(cl.c) elif result.kind == tyGenericParam: InternalError(cl.info, "substitution with generic parameter") |