Bug 20065 – Empty AliasSeq can't be used to form compiletime array literal

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2019-07-19T08:07:22Z
Last change time
2019-07-22T08:09:30Z
Keywords
pull
Assigned to
No Owner
Creator
FeepingCreature

Comments

Comment #0 by default_357-line — 2019-07-19T08:07:22Z
import std.meta; // Let me ask a question. void main() { // This works. enum string[] array1 = [AliasSeq!("foo")]; // So why doesn't this? enum string[] array2 = [AliasSeq!()]; }
Comment #1 by dlang-bot — 2019-07-19T08:34:04Z
@FeepingCreature created dlang/dmd pull request #10197 "Fix issue 20065: support empty AliasSeq tuples in compiletime array literals" fixing this issue: - Fix issue 20065: support empty AliasSeq tuples in compiletime array literals https://github.com/dlang/dmd/pull/10197
Comment #2 by dlang-bot — 2019-07-22T08:09:30Z
dlang/dmd pull request #10197 "Fix issue 20065: support empty AliasSeq tuples in compiletime array literals" was merged into stable: - 21dcbbdd779f09363ed4d2690462b2302fd8e639 by Mathis Beer: Fix issue 20065: support empty AliasSeq tuples in compiletime array literals https://github.com/dlang/dmd/pull/10197