diff options
author | Araq <rumpf_a@web.de> | 2014-03-22 23:48:33 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-03-22 23:48:33 +0100 |
commit | 7a311f93f7c08376416989e2c0a777db9e94dc7b (patch) | |
tree | 8969f00a31ecd5b084e1ae03f0e6990163fc99e3 | |
parent | a4f30c36822511ce4460a5d23b2ec82e36f5e796 (diff) | |
download | Nim-7a311f93f7c08376416989e2c0a777db9e94dc7b.tar.gz |
fixes #994
-rw-r--r-- | compiler/semcall.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semcall.nim b/compiler/semcall.nim index b994a94d7..04d280ce2 100644 --- a/compiler/semcall.nim +++ b/compiler/semcall.nim @@ -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. # 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 call = newNodeI(nkCall, fn.info) var hasDistinct = false call.add(newIdentNode(fn.name, fn.info)) for i in 1.. <fn.typ.n.len: |