On Friday, 12 May 2017 at 08:47:32 UTC, visitor wrote:
works for me :
mixin template testBoilerPlate(alias arg, alias expected)
{
    auto doit = {
        import std.format : format;
        auto got = compute(arg);
assert(got == expected, "expected %s got %s".format(expected, got));
        return true;
    }();
}

Another error: you want to invoke mixin with testBoilerPlate!(...) not testBoilerPlate();

Reply via email to