[Issue 9569] New: 'alias this' syntax is not accepted by dmd

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Feb 22 09:25:52 PST 2013


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

           Summary: 'alias this' syntax is not accepted by dmd
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: acehreli at yahoo.com


--- Comment #0 from Ali Cehreli <acehreli at yahoo.com> 2013-02-22 09:25:51 PST ---
struct Test
{
    int i;
    alias this = i;    // <-- Compilation error
}

void main()
{}

The compiler says:

deneme.d(121089): Error: no identifier for declarator this
deneme.d(121089): Error: alias cannot have initializer

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


More information about the Digitalmars-d-bugs mailing list