fix #9319
This commit is contained in:
parent
9eed62f71c
commit
cba86a9893
1 changed files with 2 additions and 0 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue