xxxxxxxxxx
struct lr1 {
lr1* a;
}
template proxy(T) {
private alias G = gen!T;
static if (is(typeof(G.str)))
enum str = G.str;
}
template gen(T) if (is(T == struct)) {
enum str = T.stringof;
private enum xstr = gen!(lr1*).str;
}
template gen(T: S*, S) {
private alias rc = proxy!S;
pragma(msg, is(typeof(rc.str)));
//pragma(msg, __traits(allMembers, rc)); // <- uncomment this line
enum str = rc.str~"_ptr";
}
enum tmp = proxy!lr1.str;
void main(){}