diff options
author | Arne Döring <arne.doering@gmx.net> | 2018-11-08 12:49:03 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-11-08 22:28:29 +0100 |
commit | cba86a9893022c3a4646eae711a5be2c2f0ea66f (patch) | |
tree | bea4f77948eaafece67f3239bfb2857f2e050ae4 /compiler | |
parent | 9eed62f71c73f30e08d3a592b9fbe094a83191dc (diff) | |
download | Nim-cba86a9893022c3a4646eae711a5be2c2f0ea66f.tar.gz |
fix #9319
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/semcall.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/semcall.nim b/compiler/semcall.nim index c391cb7c9..5e3e8b65b 100644 --- a/compiler/semcall.nim +++ b/compiler/semcall.nim @@ -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] |