[Issue 16083] AliasSeq loses type of enums that have the same value

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri May 27 07:02:05 PDT 2016


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

--- Comment #1 from yazan.dabain at gmail.com ---
Clarification:
---------------

import std.meta : AliasSeq;

enum A : string { a = "foo" }
enum B : string { b = "foo" }

static assert(is(typeof(AliasSeq!(A.a)[0]) == A)); // AliasSeq(1)
static assert(is(typeof(AliasSeq!(B.b)[0]) == B)); // currently fails but
removing the line with AliasSeq(1) makes this succeed.

--


More information about the Digitalmars-d-bugs mailing list