Bug 6462 – mixin() should accept arrays of char, as well as string literals
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-08-10T02:52:00Z
Last change time
2011-08-10T09:28:18Z
Assigned to
nobody
Creator
clugdbug
Comments
Comment #0 by clugdbug — 2011-08-10T02:52:19Z
This test case comes from bug 6457. Not a regression, this has never worked.
const char[] bug6462 = ['i','n','t',' ','a',';'];
static assert(bug6462 == "int a;"); // OK
mixin(bug6462);
test3.d(3): Error: argument to mixin must be a string, not (['i','n','t',' ','a'
,';'])
Comment #1 by yebblies — 2011-08-10T09:28:18Z
*** This issue has been marked as a duplicate of issue 2156 ***