[Issue 10009] New: foreach_reverse and AA.byKey/byValue

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Apr 29 12:22:38 PDT 2013


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

           Summary: foreach_reverse and AA.byKey/byValue
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: henning at still-hidden.de


--- Comment #0 from Henning Pohl <henning at still-hidden.de> 2013-04-29 12:22:36 PDT ---
void main() {
    auto aa = [1 : 2, 2 : 3];
    foreach_reverse (e; aa.byKey()) { }
}

-----
test.d(4): Error: invalid foreach aggregate aa.byKey().state
-----

foreach works like a charm.

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