[Issue 19303] hasMember fails to recognize member (interaction with mixin template)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Nov 28 11:47:36 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=19303
--- Comment #2 from Eduard Staniloiu <edi33416 at gmail.com> ---
What is even weirder, if you define your own `hasMember` wrapper, that works
just fine with the initial definition of Port
```
enum hasM(T, string name) = __traits(hasMember, T, name);
static assert(hasM!(P, "ElementType")); // ok
```
As reflected by https://run.dlang.io/is/pKYL9B
--
More information about the Digitalmars-d-bugs
mailing list