struct P
{
alias q this;
Q q;
struct Q
{
}
}
void f()
{
auto rc = P; // Error: type `Q` has no value
}
It should say type `P` has no value. (Note P can be a more complex expression that resolves to the struct type).
Comment #1 by robert.schadek — 2024-12-13T19:29:36Z