Bug 14752 – Implicit conversion fail for array concatenation

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-06-30T19:23:44Z
Last change time
2024-12-13T18:43:36Z
Assigned to
No Owner
Creator
Walter Bright
Moved to GitHub: dmd#19010 →

Comments

Comment #0 by bugzilla — 2015-06-30T19:23:44Z
Consider: void main() { char[] x; string s = "abc" ~ x; } which fails to compile with: Error: cannot implicitly convert expression ("abc" ~ x) of type char[] to string This should work, because the ~ operator produces a unique allocated string.
Comment #1 by schveiguy — 2015-06-30T20:13:39Z
Comment #2 by robert.schadek — 2024-12-13T18:43:36Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19010 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB