Bug 2910 – ~= can append array literals to strings.

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2009-04-29T09:31:00Z
Last change time
2015-06-09T01:26:27Z
Keywords
accepts-invalid
Assigned to
bugzilla
Creator
clugdbug

Comments

Comment #0 by clugdbug — 2009-04-29T09:31:38Z
void main() { char [] s; s ~= [0x313233L, 0x44]; } D2 only, D1 correctly rejects it.
Comment #1 by dsimcha — 2009-04-29T09:53:50Z
I'm not sure I fully understand this bug, but if I do understand it correctly, it's a dup of bug 2892. Please see whether this is the case.
Comment #2 by clugdbug — 2009-04-29T10:31:42Z
(In reply to comment #1) > I'm not sure I fully understand this bug, but if I do understand it correctly, > it's a dup of bug 2892. Please see whether this is the case. Yup, it's the same. Although I think it only applies when the literal is an integral array literal. *** This bug has been marked as a duplicate of 2892 ***