← Back to index
|
Original Bugzilla link
Bug 3707 – (D1 only) comma-terminated array initializers not allowed with mixin
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
All
OS
All
Creation time
2010-01-14T23:22:48Z
Last change time
2019-08-29T17:32:08Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
Andrei Alexandrescu
Comments
Comment #0
by andrei — 2010-01-14T23:22:48Z
This works: string[] stopwords = mixin("[" ~ `"a","b"` ~ "]"); This works too: string[] stopwords = ["a","b",]; But this doesn't: string[] stopwords = mixin("[" ~ `"a","b",` ~ "]");
Comment #1
by yebblies — 2011-06-12T21:35:15Z
This work correctly on D2, not on D1
Comment #2
by pro.mathias.lang — 2019-08-29T17:32:08Z
D1 is gone, long live D2.