[Issue 9490] New: 'this' is not found when array expression is in parentheses

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Feb 9 10:31:52 PST 2013


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: nobody at puremagic.com
        ReportedBy: andrej.mitrovich at gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 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: -------


More information about the Digitalmars-d-bugs mailing list