Bug 2169 – (D1 only) Can't concat non-char[] string literal and char literal

Status
RESOLVED
Resolution
WONTFIX
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
All
OS
All
Creation time
2008-06-24T14:58:47Z
Last change time
2019-07-13T11:39:57Z
Keywords
CTFE, rejects-valid
Assigned to
No Owner
Creator
Jarrett Billingsley

Comments

Comment #0 by jarrett.billingsley — 2008-06-24T14:58:47Z
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.
Comment #1 by yebblies — 2011-09-07T01:49:55Z
*** Issue 3126 has been marked as a duplicate of this issue. ***
Comment #2 by razvan.nitu1305 — 2019-07-13T11:39:57Z
Closing as WONTFIX as this has been fixed in D2.