Created
June 1, 2015 19:46
-
-
Save Peaker/b36982ba143c9c274a8b to your computer and use it in GitHub Desktop.
Changing the compiler to emit a more informative error -- didn't work
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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