diff options
author | Araq <rumpf_a@web.de> | 2014-02-09 00:41:53 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-02-09 00:41:53 +0100 |
commit | dbc8aa60e30da3f85306455387bb563437215725 (patch) | |
tree | 251bf05ce13fca05c0814d32cc0c6248d7155c1d /compiler/sigmatch.nim | |
parent | c3adc19f471ddddf0cab9a92908dcdbede26b3eb (diff) | |
download | Nim-dbc8aa60e30da3f85306455387bb563437215725.tar.gz |
fixes 'newSeq[T]' instantiation bug
Diffstat (limited to 'compiler/sigmatch.nim')
-rw-r--r-- | compiler/sigmatch.nim | 1 |
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, |