fixes 'newSeq[T]' instantiation bug
This commit is contained in:
parent
c3adc19f47
commit
dbc8aa60e3
5 changed files with 27 additions and 11 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue