[Issue 19728] New: AliasSeq in UDA errors

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 10 16:04:40 UTC 2019


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

          Issue ID: 19728
           Summary: AliasSeq in UDA errors
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: mail at skoppe.eu

The following compiles, but not if I remove Dummy from the AliasSeq, or remove
Dummy's assignment to 0.

The error I get is `Error: cannot form tuple of tuples`

---

import std.meta;

enum A; enum B; enum Dummy = 0; // <- Dummy needs to be 0

struct Param(alias T) {}

@AliasSeq!(Dummy,Param!A,Param!B) // <- Here Dummy is needed
struct Foo {}

pragma(msg, __traits(getAttributes, Foo));

void main() {}

---

--


More information about the Digitalmars-d-bugs mailing list