Bug 12590 – Associative array idup

Status
NEW
Severity
enhancement
Priority
P4
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-04-16T22:04:58Z
Last change time
2024-12-07T13:33:41Z
Assigned to
No Owner
Creator
bearophile_hugs
Moved to GitHub: dmd#17274 →

Comments

Comment #0 by bearophile_hugs — 2014-04-16T22:04:58Z
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)
Comment #1 by andrej.mitrovich — 2014-04-19T12:56:44Z
(In reply to bearophile_hugs from comment #0) > DMD 2.066alpha gives Or any version for that matter. For a second there I thought it might have been a regression. This is an enhancement request, so it can't be a rejects-valid until it's approved. :>
Comment #2 by robert.schadek — 2024-12-07T13:33:41Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17274 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB