April 16, 2022

for example:

function void a(int i) {
    writeln(i);
}

auto JSFunction(alias F)() if(isSomeFunction!F) {
    class S {
   	public ReturnType!F dg(ParameterTypeTuple!F) {
            mixin(F.body) // what should i do ???
        }
    }
}

thank you