Bug 12225 – Alias and value template overloading with function argument

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-02-22T10:50:53Z
Last change time
2019-11-13T01:42:26Z
Assigned to
No Owner
Creator
Peter Alexander
Blocks
12199

Comments

Comment #0 by peter.alexander.au — 2014-02-22T10:50:53Z
void foo(int a)() {} void foo(alias a)() {} int bar(int x) { return 1; } void main() { foo!bar(); } dmd 2.065.0 rc1 gives: bug.d(1): Error: bar (int x) is not callable using argument types () Expected: the call should match the foo(alias a) overload.
Comment #1 by bugzilla — 2019-11-12T20:28:30Z
Seems to be fixed meanwhile. Can someone confirm, so we can close this?
Comment #2 by greeenify — 2019-11-13T01:42:26Z
There's no need to wait for reviews/approvals when triaging old issues. Please feel free to directly close them if the issue has been fixed in the meantime. Thanks!