This commit is contained in:
Araq 2014-03-22 23:48:33 +01:00
commit 7a311f93f7

View file

@ -326,7 +326,7 @@ proc searchForBorrowProc(c: PContext, startScope: PScope, fn: PSym): PSym =
# for borrowing the sym in the symbol table is returned, else nil. # for borrowing the sym in the symbol table is returned, else nil.
# New approach: generate fn(x, y, z) where x, y, z have the proper types # New approach: generate fn(x, y, z) where x, y, z have the proper types
# and use the overloading resolution mechanism: # and use the overloading resolution mechanism:
var call = newNode(nkCall) var call = newNodeI(nkCall, fn.info)
var hasDistinct = false var hasDistinct = false
call.add(newIdentNode(fn.name, fn.info)) call.add(newIdentNode(fn.name, fn.info))
for i in 1.. <fn.typ.n.len: for i in 1.. <fn.typ.n.len: