D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6462 - mixin() should accept arrays of char, as well as string literals
Summary: mixin() should accept arrays of char, as well as string literals
Status: RESOLVED DUPLICATE of issue 2156
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Windows
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-10 02:52 UTC by Don
Modified: 2011-08-10 09:28 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Don 2011-08-10 02:52:19 UTC
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 yebblies 2011-08-10 09:28:18 UTC

*** This issue has been marked as a duplicate of issue 2156 ***