diff options
Diffstat (limited to 'compiler/semcall.nim')
-rw-r--r-- | compiler/semcall.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/semcall.nim b/compiler/semcall.nim index 5e3e8b65b..214affb19 100644 --- a/compiler/semcall.nim +++ b/compiler/semcall.nim @@ -571,7 +571,8 @@ proc explicitGenericInstantiation(c: PContext, n: PNode, s: PSym): PNode = let e = semExpr(c, n.sons[i]) if e.typ == nil: localError(c.config, e.info, "expression has no type") - n.sons[i].typ = e.typ.skipTypes({tyTypeDesc}) + else: + n.sons[i].typ = e.typ.skipTypes({tyTypeDesc}) var s = s var a = n.sons[0] if a.kind == nkSym: |