[Issue 17400] New: put a new line before "candidates are:" in error messages
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon May 15 21:28:06 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=17400
Issue ID: 17400
Summary: put a new line before "candidates are:" in error
messages
Product: D
Version: D2
Hardware: x86
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: reachzach at gmail.com
Suggestion: Put a new line or two before "candidates are:", and maybe
capitalize it, in the error message for template ambiguity errors. I think
they're already hard enough to read, and this might help a little. I made an
issue for it, because I don't feel fully qualified to decide on this.
Current template error example:
file(line): Error: template foo cannot deduce function from
argument types !()(int, string), candidates are:
file(line): foo(Args...)(auto ref Args arg) if
(!anySatisfy!(isString, Args))
Recommended change:
file(line): Error: template foo cannot deduce function from
argument types !()(int, string)
Candidates are:
file(line): foo(Args...)(auto ref Args arg) if
(!anySatisfy!(isString, Args))
Or (more spacious):
file(line): Error: template foo cannot deduce function from
argument types !()(int, string)
Candidates are:
file(line): foo(Args...)(auto ref Args arg) if
(!anySatisfy!(isString, Args))
It seems trivial, but little things matter too!
--
More information about the Digitalmars-d-bugs
mailing list