failed attempt to fix a 'void' inference bug
This commit is contained in:
parent
80ad3d3441
commit
7906527297
1 changed files with 6 additions and 1 deletions
|
|
@ -1567,8 +1567,13 @@ proc paramTypesMatch*(m: var TCandidate, f, a: PType,
|
||||||
|
|
||||||
|
|
||||||
proc setSon(father: PNode, at: int, son: PNode) =
|
proc setSon(father: PNode, at: int, son: PNode) =
|
||||||
if sonsLen(father) <= at: setLen(father.sons, at + 1)
|
let oldLen = father.len
|
||||||
|
if oldLen <= at:
|
||||||
|
setLen(father.sons, at + 1)
|
||||||
father.sons[at] = son
|
father.sons[at] = son
|
||||||
|
# insert potential 'void' parameters:
|
||||||
|
#for i in oldLen ..< at:
|
||||||
|
# father.sons[i] = newNodeIT(nkEmpty, son.info, getSysType(tyVoid))
|
||||||
|
|
||||||
# we are allowed to modify the calling node in the 'prepare*' procs:
|
# we are allowed to modify the calling node in the 'prepare*' procs:
|
||||||
proc prepareOperand(c: PContext; formal: PType; a: PNode): PNode =
|
proc prepareOperand(c: PContext; formal: PType; a: PNode): PNode =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue