Bug 23459 – Don't use 'Candidate is' when there is more than one alias function overload
Status
RESOLVED
Resolution
FIXED
Severity
trivial
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2022-11-04T17:10:02Z
Last change time
2022-11-05T14:05:10Z
Keywords
pull
Assigned to
No Owner
Creator
Nick Treleaven
Comments
Comment #0 by nick — 2022-11-04T17:10:02Z
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.
Comment #1 by dlang-bot — 2022-11-04T17:12:44Z
@ntrel created dlang/dmd pull request #14618 "Don't use 'Candidate is' when there is more than one alias function overload" fixing this issue:
- Fix Issue 23459 - Don't use 'Candidate is' when there is more than one alias function overload
https://github.com/dlang/dmd/pull/14618
Comment #2 by dlang-bot — 2022-11-05T14:05:10Z
dlang/dmd pull request #14618 "Don't use 'Candidate is' when there is more than one alias function overload" was merged into master:
- 3fd489dffade586df16595d92981bc168810471f by Nick Treleaven:
Fix Issue 23459 - Don't use 'Candidate is' when there is more than one alias function overload
https://github.com/dlang/dmd/pull/14618