[Issue 19728] AliasSeq in UDA errors
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 10 16:44:35 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=19728
Basile-z <b2.temp at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
CC| |b2.temp at gmx.com
Hardware|x86 |All
OS|Mac OS X |All
Severity|enhancement |normal
--- Comment #1 from Basile-z <b2.temp at gmx.com> ---
test case, w/o phobos
---
enum A; enum B; enum Dummy = 0; // <- Dummy needs to be 0
alias Seq(T...) = T;
@Seq!(A,B) struct Foo1 {} // rejected
@Seq!(A,B, Dummy) struct Foo2 {} // works because of dummy
static assert(is(typeof(__traits(getAttributes, Foo1)))); // fails but should
not
static assert(is(typeof(__traits(getAttributes, Foo2)))); // pk
void main() {}
---
--
More information about the Digitalmars-d-bugs
mailing list