D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 2169 - (D1 only) Can't concat non-char[] string literal and char literal
Summary: (D1 only) Can't concat non-char[] string literal and char literal
Status: RESOLVED WONTFIX
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: CTFE, rejects-valid
: 3126 (view as issue list)
Depends on:
Blocks:
 
Reported: 2008-06-24 14:58 UTC by Jarrett Billingsley
Modified: 2019-07-13 11:39 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Jarrett Billingsley 2008-06-24 14:58:47 UTC
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 yebblies 2011-09-07 01:49:55 UTC
*** Issue 3126 has been marked as a duplicate of this issue. ***
Comment 2 RazvanN 2019-07-13 11:39:57 UTC
Closing as WONTFIX as this has been fixed in D2.