xxxxxxxxxx
import std.meta, std.traits;
unittest
{
// static // <= uncomment this to get rid of "this" in AllMembers result
struct S
{
int i;
auto foo() {} // if you comment this method AllMembers won't return "this"
}
pragma(msg, __traits(allMembers, S));
static assert(!hasMember!(S, "this")); // <== AllMembers returns "this" but hasMember says it does not exists
}
void main()
{
}