digitalmars.D.bugs - [Issue 7208] New: Unique arrays should be covariant
- d-bugmail puremagic.com (25/25) Jan 02 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7208
- d-bugmail puremagic.com (10/10) Jan 02 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7208
- d-bugmail puremagic.com (6/6) Jan 02 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7208
- d-bugmail puremagic.com (6/6) Jan 19 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7208
http://d.puremagic.com/issues/show_bug.cgi?id=7208 Summary: Unique arrays should be covariant Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: timon.gehr gmx.ch class A{} void foo(Object[]){} A[] bar()pure{return new A[16];} void main(){ foo([new A]); // error foo(new A[16]); // error foo(bar()); // error } The code should compile. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 02 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7208 Jonathan M Davis <jmdavisProg gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jmdavisProg gmx.com PST --- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 02 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7208 No. There is no issue if the array is provable unique. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 02 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7208 foo([new A]) seems to work now with DMD 2.057. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 19 2012