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

           Summary: 'this' is not found when array expression is in
                    parentheses
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Andrej Mitrovic <[email protected]> 2013-02-09 
10:31:51 PST ---
class C
{
    int[] arr;

    this()
    {
        // ok
        assert(arr.length);

        // Error: need 'this' to access member arr
        assert((arr).length);
    }
}

void main()
{
}

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

Reply via email to