This commit is contained in:
Arne Döring
2018-11-08 12:49:03 +01:00
committed by Andreas Rumpf
parent 9eed62f71c
commit cba86a9893

View File

@@ -569,6 +569,8 @@ proc explicitGenericInstantiation(c: PContext, n: PNode, s: PSym): PNode =
assert n.kind == nkBracketExpr
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 = e.typ.skipTypes({tyTypeDesc})
var s = s
var a = n.sons[0]