www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20065] New: Empty AliasSeq can't be used to form compiletime

https://issues.dlang.org/show_bug.cgi?id=20065

          Issue ID: 20065
           Summary: Empty AliasSeq can't be used to form compiletime array
                    literal
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: default_357-line yahoo.de

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!()];
}

--
Jul 19 2019