Bug 2019 – Appending a one-element array literal doesn't work

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2008-04-20T18:32:00Z
Last change time
2015-06-09T01:14:37Z
Assigned to
bugzilla
Creator
bartosz

Comments

Comment #0 by bartosz — 2008-04-20T18:32:28Z
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;
Comment #1 by bugzilla — 2008-05-11T04:18:17Z
Fixed dmd 1.029 and 2.013