www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19832] New: mixin with AliasSeq fails

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

          Issue ID: 19832
           Summary: mixin with AliasSeq fails
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: qs.il.paperinik gmail.com

mixin has been expanded to accept any number of arguments that are being
concatenated. This should also work with an AliasSeq.

alias seq = AliasSeq!("a +", 1);
a = mixin(seq);

should behave the same way as

a = mixin("a +", 1);

The generated error message "Error: undefined identifier `tuple`" is rather
confusing.

--
Apr 26 2019