[Issue 19832] New: mixin with AliasSeq fails

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 26 23:58:44 UTC 2019


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 at puremagic.com
          Reporter: qs.il.paperinik at 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.

--


More information about the Digitalmars-d-bugs mailing list