interface Foo
{
void work();
}
template Wrapper(B, alias Func, int func)
{
alias typeof(&Func) FuncPtr;
private static FuncPtr get_funcptr() { return func; }
}
int main(char[][] args)
{
auto x = new Wrapper!(Foo, Foo.work, cast(int)(Foo.classinfo.vtbl[0]))();
return 0;
}
Assertion failure: 'e1->type' on line 6377 in file 'expression.c'
abnormal program termination