diff --git a/compiler/semcall.nim b/compiler/semcall.nim index 735e6fac8e..a29efcd8ac 100644 --- a/compiler/semcall.nim +++ b/compiler/semcall.nim @@ -207,11 +207,14 @@ proc SearchForBorrowProc(c: PContext, startScope: PScope, fn: PSym): PSym = # New approach: generate fn(x, y, z) where x, y, z have the proper types # and use the overloading resolution mechanism: var call = newNode(nkCall) + var hasDistinct = false call.add(newIdentNode(fn.name, fn.info)) for i in 1..