[Issue 23459] New: Don't use 'Candidate is' when there is more than one alias function overload
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 4 17:10:02 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=23459
Issue ID: 23459
Summary: Don't use 'Candidate is' when there is more than one
alias function overload
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Severity: trivial
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: nick at geany.org
void foo(int) {}
void bar(double) {}
alias func = foo;
alias func = bar;
void main()
{
func("abc");
}
fail_compilation/diag14818.d(12): Candidate is: `diag14818.foo(int
_param_0)`
fail_compilation/diag14818.d(13): `diag14818.bar(double
_param_0)`
Should be 'Candidates are'.
PR incoming.
--
More information about the Digitalmars-d-bugs
mailing list