April 20, 2008 [Issue 2019] New: Appending a one-element array literal doesn't work | ||||
---|---|---|---|---|
| ||||
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; -- |
May 11, 2008 [Issue 2019] Appending a one-element array literal doesn't work | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | 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 -- |
Copyright © 1999-2021 by the D Language Foundation