xxxxxxxxxx
void main()
{
auto s = S();
auto t = T!s();
t.foo;
}
struct S { void fun(){} }
struct T(alias s){ auto foo() { s.fun; } }