[Issue 12225] New: Alias and value template overloading with function argument

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Feb 22 10:50:55 PST 2014


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: nobody at puremagic.com
        ReportedBy: peter.alexander.au at gmail.com


--- Comment #0 from Peter Alexander <peter.alexander.au at gmail.com> 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: -------


More information about the Digitalmars-d-bugs mailing list