[Issue 12590] New: Associative array idup

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 16 15:04:58 PDT 2014


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

          Issue ID: 12590
           Summary: Associative array idup
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: enhancement
          Priority: P1
         Component: druntime
          Assignee: nobody at puremagic.com
          Reporter: bearophile_hugs at eml.cc

void main() {
    const int[int] aa1 = [1: 10];
    immutable aa2 = aa1.idup;
}


DMD 2.066alpha gives:

test.d(3,24): Error: template object.idup cannot deduce function from argument
types !()(const(int[int])), candidates are:
...\dmd2\src\druntime\import\object.di(662,26):        object.idup(T)(T[] a)

--


More information about the Digitalmars-d-bugs mailing list