Skip to content

Instantly share code, notes, and snippets.

@Peaker
Created June 1, 2015 19:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Peaker/b36982ba143c9c274a8b to your computer and use it in GitHub Desktop.
Save Peaker/b36982ba143c9c274a8b to your computer and use it in GitHub Desktop.
Changing the compiler to emit a more informative error -- didn't work
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim
index 2a9d15b..530f226 100644
--- a/compiler/sigmatch.nim
+++ b/compiler/sigmatch.nim
@@ -251,7 +251,7 @@ proc describeArgs*(c: PContext, n: PNode, startIdx = 1;
arg = c.semOperand(c, n.sons[i])
n.sons[i] = arg
if arg.typ.kind == tyError: return
- add(result, argTypeToString(arg, prefer))
+ add(result, typeToString(arg.typ, prefer))
if i != sonsLen(n) - 1: add(result, ", ")
proc typeRel*(c: var TCandidate, f, aOrig: PType, doBind = true): TTypeRelation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment