[Issue 15065] New: associative array has no keys property

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Sep 15 17:47:57 PDT 2015


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

          Issue ID: 15065
           Summary: associative array has no keys property
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: vlevenfeld at gmail.com

struct X (int[int] x)
{
    enum y = x.keys; // OK
    alias z = partial!(canFind, y); // OK
    alias w = partial!(canFind, x.keys); // Error: no property 'keys' for type
'int[int]'
}

X!([1:2]) zzz;

--


More information about the Digitalmars-d-bugs mailing list