Comment #0 by dlang-bugzilla — 2014-03-03T04:31:40Z
////// test.d /////
void fun(alias a)()
{
a = 42;
}
struct S
{
int x;
}
void main()
{
S s;
fun!(s.x)();
}
///////////////////
Currently, this fails with:
test.d(14): Error: need 'this' for 'fun' of type 'pure nothrow @safe void()'
However, we provide the "this" in the "s.x" expression.
Comment #1 by robert.schadek — 2024-12-13T18:17:45Z