digitalmars.D.bugs - [Issue 12590] New: Associative array idup
- d-bugmail puremagic.com (23/23) Apr 16 2014 https://issues.dlang.org/show_bug.cgi?id=12590
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 puremagic.com Reporter: bearophile_hugs 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) --
Apr 16 2014