fixes 'newSeq[T]' instantiation bug

This commit is contained in:
Araq 2014-02-09 00:41:53 +01:00
commit dbc8aa60e3
5 changed files with 27 additions and 11 deletions

View file

@ -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,