struct Foo
{
int a;
}
void main()
{
Foo.a;
}
Gives the error
onlineapp.d(8): Error: need `this` for `a` of type `int`
If possible, I'd like something like this
onlineapp.d(8): Error: `a` of type `Foo` is not a static member and needs a `this` pointer
Comment #1 by robert.schadek — 2024-12-13T19:24:44Z