www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21356] New: mixin of mixin template in indexed tuple not

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

          Issue ID: 21356
           Summary: mixin of mixin template in indexed tuple not allowed
           Product: D
           Version: D2
          Hardware: x86
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: destructionator gmail.com

Easier to describe in code:

---
struct A {
        mixin template Foo() {}
}

alias AliasSeq(A...) = A;

alias thing = AliasSeq!(A);

mixin thing[0].Foo; // error
---

--
Nov 02 2020