[Issue 13885] New: aa.byKey and aa.byValue don't have a length

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Dec 21 08:59:06 PST 2014


https://issues.dlang.org/show_bug.cgi?id=13885

          Issue ID: 13885
           Summary: aa.byKey and aa.byValue don't have a length
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: druntime
          Assignee: nobody at puremagic.com
          Reporter: bearophile_hugs at eml.cc

void main() {
    int[int] aa;
    size_t len1 = aa.byKey.length;
    size_t len2 = aa.byValue.length;
}


Dmd 2.067alpha gives:

temp.d(3,27): Error: no property 'length' for type 'Result'
temp.d(4,29): Error: no property 'length' for type 'Result'

--


More information about the Digitalmars-d-bugs mailing list