digitalmars.D.bugs - [Issue 2019] New: Appending a one-element array literal doesn't work
- d-bugmail puremagic.com Apr 20 2008
- d-bugmail puremagic.com May 11 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2019 Summary: Appending a one-element array literal doesn't work Product: D Version: 2.012 Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: bartosz relisoft.com The following code doesn't compile: string [][] result = []; string s = ""; result = result ~ [s]; Error: incompatible types for ((result) ~ ([s])): 'invariant(char)[][][]' and 'invariant(char)[][1u]' I had to use the following workaround: string [][] result = []; string [] single = [s]; result = result ~ single; --
Apr 20 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2019 bugzilla digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #1 from bugzilla digitalmars.com 2008-05-11 04:18 ------- Fixed dmd 1.029 and 2.013 --
May 11 2008








d-bugmail puremagic.com