caas barely works now
This commit is contained in:
parent
b1c44c9ae1
commit
de338526ec
4 changed files with 18 additions and 8 deletions
|
|
@ -579,6 +579,8 @@ proc userConvMatch(c: PContext, m: var TCandidate, f, a: PType,
|
|||
|
||||
proc localConvMatch(c: PContext, m: var TCandidate, f, a: PType,
|
||||
arg: PNode): PNode =
|
||||
# arg.typ can be nil in 'suggest':
|
||||
if isNil(arg.typ): return nil
|
||||
var call = newNodeI(nkCall, arg.info)
|
||||
call.add(f.n.copyTree)
|
||||
call.add(arg.copyTree)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue