http://d.puremagic.com/issues/show_bug.cgi?id=8692

           Summary: UFCS doesn't work with template alias parameter
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: r.97...@gmail.com


--- Comment #0 from Ryuichi OHORI <r.97...@gmail.com> 2012-09-18 21:37:44 PDT 
---
In examples below these 5 lines are common:

module main;
import std.stdio : writeln;
void main()
{
    F!writeln("Hello ", "world!");
}


In http://dpaste.dzfl.pl/26f42047 , I wrote F using UFCS:
void F(alias f) (string x, string y)
{
    x.f(y);
}
which became an error.


// In http://dpaste.dzfl.pl/8f208239 , I wrote F normally:
void F(alias f) (string x, string y)
{
    f(x, y);
}
and it worked.

I see many UFCS issues here, sorry if this is duplicated.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to