alias aliases(a...) = a;
struct V
{
int _0() { return 0; }
int _1;
alias t = aliases!(_0, _1);
alias t this;
}
void main()
{
V v;
auto x1 = v[0]; // fails
auto x2 = v.t[0]; // fails
auto x3 = v[1]; // ok
auto x4 = v.t[1]; // ok
}
Comment #1 by robert.schadek — 2024-12-13T19:27:17Z