summary refs log tree commit diff stats
path: root/compiler/semcall.nim
diff options
context:
space:
mode:
authorArne Döring <arne.doering@gmx.net>2019-08-14 17:41:44 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-08-14 17:41:44 +0200
commit65ed2d7fe858c9239086e92518ae1db6d2e7fa42 (patch)
tree24c657fe8585cc3e97e874cef988b333a24f814a /compiler/semcall.nim
parente6cb7e34effe7a47ab2a6d662e5bc99e89893757 (diff)
downloadNim-65ed2d7fe858c9239086e92518ae1db6d2e7fa42.tar.gz
fixes #11942 (#11945)
Diffstat (limited to 'compiler/semcall.nim')
-rw-r--r--compiler/semcall.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semcall.nim b/compiler/semcall.nim
index f86784214..24547bccd 100644
--- a/compiler/semcall.nim
+++ b/compiler/semcall.nim
@@ -594,7 +594,7 @@ proc explicitGenericInstantiation(c: PContext, n: PNode, s: PSym): PNode =
   for i in 1..sonsLen(n)-1:
     let e = semExpr(c, n.sons[i])
     if e.typ == nil:
-      localError(c.config, e.info, "expression has no type")
+      n.sons[i].typ = errorType(c)
     else:
       n.sons[i].typ = e.typ.skipTypes({tyTypeDesc})
   var s = s