diff options
author | Andreas Rumpf <andreas@andreas-laptop> | 2010-07-21 09:44:47 +0200 |
---|---|---|
committer | Andreas Rumpf <andreas@andreas-laptop> | 2010-07-21 09:44:47 +0200 |
commit | d10973adb00840631e5314ec902d502f15934801 (patch) | |
tree | a207854b0cf984815beb26bf2d71933ce566f6d7 /rod/sigmatch.nim | |
parent | c441cdb64ca5394f74faadf76563bcfafeda18f4 (diff) | |
download | Nim-d10973adb00840631e5314ec902d502f15934801.tar.gz |
c2nim tool added
Diffstat (limited to 'rod/sigmatch.nim')
-rwxr-xr-x | rod/sigmatch.nim | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/rod/sigmatch.nim b/rod/sigmatch.nim index a1b322d86..a33265f40 100755 --- a/rod/sigmatch.nim +++ b/rod/sigmatch.nim @@ -92,18 +92,15 @@ proc getNotFoundError(c: PContext, n: PNode): string = # Gives a detailed error message; this is seperated from semDirectCall, # as semDirectCall is already pretty slow (and we need this information only # in case of an error). - var - sym: PSym - o: TOverloadIter - candidates: string result = msgKindToString(errTypeMismatch) for i in countup(1, sonsLen(n) - 1): #debug(n.sons[i].typ); add(result, typeToString(n.sons[i].typ)) if i != sonsLen(n) - 1: add(result, ", ") add(result, ')') - candidates = "" - sym = initOverloadIter(o, c, n.sons[0]) + var candidates = "" + var o: TOverloadIter + var sym = initOverloadIter(o, c, n.sons[0]) while sym != nil: if sym.kind in {skProc, skMethod, skIterator, skConverter}: add(candidates, getProcHeader(sym)) |