https://d.puremagic.com/issues/show_bug.cgi?id=12225
Summary: Alias and value template overloading with function
argument
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Peter Alexander <[email protected]> 2014-02-22
10:50:53 PST ---
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.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------