diff options
author | Araq <rumpf_a@web.de> | 2014-10-30 22:36:23 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-10-30 22:36:23 +0100 |
commit | 4b61592602fdcf4d3870421bbc126b281fce3af5 (patch) | |
tree | ffa5b0535d8177c8eb60a51b8770c6266639607e | |
parent | 73ff0432dc374057d817c95be074737b82c3024c (diff) | |
download | Nim-4b61592602fdcf4d3870421bbc126b281fce3af5.tar.gz |
minor bugfix for notFoundError
-rw-r--r-- | compiler/semcall.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/semcall.nim b/compiler/semcall.nim index d3720b0ab..3971b8ff5 100644 --- a/compiler/semcall.nim +++ b/compiler/semcall.nim @@ -99,7 +99,7 @@ proc notFoundError*(c: PContext, n: PNode, errors: CandidateErrors) = for i in countup(1, n.len - 1): var p = n.sons[i] if p.kind == nkSym: - add(errProto, typeToString(p.sym.typ, prefer)) + add(errProto, typeToString(p.sym.typ, preferName)) if i != n.len-1: add(errProto, ", ") # else: ignore internal error as we're already in error handling mode if errProto == proto: @@ -327,7 +327,7 @@ proc explicitGenericInstantiation(c: PContext, n: PNode, s: PSym): PNode = result = explicitGenericSym(c, n, s) elif a.kind in {nkClosedSymChoice, nkOpenSymChoice}: # choose the generic proc with the proper number of type parameters. - # XXX I think this could be improved by reusing sigmatch.ParamTypesMatch. + # XXX I think this could be improved by reusing sigmatch.paramTypesMatch. # It's good enough for now. result = newNodeI(a.kind, n.info) for i in countup(0, len(a)-1): |