From 65ed2d7fe858c9239086e92518ae1db6d2e7fa42 Mon Sep 17 00:00:00 2001 From: Arne Döring Date: Wed, 14 Aug 2019 17:41:44 +0200 Subject: fixes #11942 (#11945) --- compiler/semcall.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/semcall.nim') 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 -- cgit 1.4.1-2-gfad0