Comment #0 by john.loughran.colvin — 2017-09-05T14:42:47Z
template A()
{
auto A() { return this; }
}
template B(alias a)
{
auto B() { return this; }
}
struct S
{
int a;
// Error: 'this' is only defined in non-static member functions, not A
alias foo0 = A!();
// OK ??? I don't think this should work
alias foo1 = B!(a);
}
Comment #1 by nick — 2022-09-14T13:18:00Z
Confirmed with dmd v2.100.2-beta.1-dirty.
Comment #2 by robert.schadek — 2024-12-13T18:54:26Z