[Issue 12386] New: Allow using derivatives of IFTI'd types in remaining arguments

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 16 22:37:29 PDT 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12386

           Summary: Allow using derivatives of IFTI'd types in remaining
                    arguments
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: thecybershadow at gmail.com


--- Comment #0 from Vladimir Panteleev <thecybershadow at gmail.com> 2014-03-17 07:37:26 EET ---
//////// test.d ////////
alias X(T) = T;

void f(T)(T a, X!T b) {}

void main()
{
    f(5, 5);
}
////////////////////////

Once the compiler knows what type T is, it can also know what X!T is.

-- 
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