March 24, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9807

           Summary: with statement does not work with alias this
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: robert@octarineparrot.com


--- Comment #0 from Robert Clipsham <robert@octarineparrot.com> 2013-03-24 13:26:27 GMT ---
The with statement does not appear to take alias this into account:
----
void test(T)(T t)
{
}

struct Foo {
    string[string] strs;
    alias strs this;
}

void main()
{
    Foo f;
    test(f.keys[0]); // Fine
    with(f) {
        test(keys[0]); // Not fine
    }
}
----
test.d(15): Error: undefined identifier keys

Using dmd 2.062.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 09, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9807


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich@gmail.com
         Resolution|                            |DUPLICATE


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-06-09 12:01:53 PDT ---
*** This issue has been marked as a duplicate of issue 6711 ***

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