summary refs log tree commit diff stats
path: root/compiler/sigmatch.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-02-09 00:41:53 +0100
committerAraq <rumpf_a@web.de>2014-02-09 00:41:53 +0100
commitdbc8aa60e30da3f85306455387bb563437215725 (patch)
tree251bf05ce13fca05c0814d32cc0c6248d7155c1d /compiler/sigmatch.nim
parentc3adc19f471ddddf0cab9a92908dcdbede26b3eb (diff)
downloadNim-dbc8aa60e30da3f85306455387bb563437215725.tar.gz
fixes 'newSeq[T]' instantiation bug
Diffstat (limited to 'compiler/sigmatch.nim')
-rw-r--r--compiler/sigmatch.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim
index f9200ea0c..335ceafeb 100644
--- a/compiler/sigmatch.nim
+++ b/compiler/sigmatch.nim
@@ -105,6 +105,7 @@ proc initCandidate*(ctx: PContext, c: var TCandidate, callee: PSym,
       var bound = binding[i].typ
       if bound != nil and formalTypeParam.kind != tyTypeDesc:
         bound = bound.skipTypes({tyTypeDesc})
+      assert bound != nil
       put(c.bindings, formalTypeParam, bound)
 
 proc newCandidate*(ctx: PContext, callee: PSym,