[Issue 2169] New: Can't concat non-char[] string literal and char literal
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jun 24 12:58:50 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2169
Summary: Can't concat non-char[] string literal and char literal
Product: D
Version: 1.031
Platform: PC
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: jarrett.billingsley at gmail.com
auto x = "foo"w ~ 'x';
auto y = "foo"d ~ 'x';
auto z = 'x' ~ "foo"w;
auto w = 'x' ~ "foo"d;
All four give an error about not being able to concat a w/dchar[] with an int
(int?!). Pretty amazing.
--
More information about the Digitalmars-d-bugs
mailing list