I get the same error even with just `struct`:
```d
struct S
{
     static void f_new(alias func)()
     {
         func();
     }
}
void f_new(alias func)()
{
     func();
}
void f(FUNC)(FUNC func)
{
     f_new!(() => func());   // works
     // S.f_new!(() => func());  // doesn't work
}
```