On Saturday, 17 September 2016 at 17:22:52 UTC, Andrei Alexandrescu wrote:
    static if (is(T == int)) unittest
        Awesome awesome;

The unittest documentation is nicely generated. The unittest code itself is only generated for one instantiation.

Besides the other comments, we still have to instantiate Awesome!int somewhere for the tests to run, which could be forgotten or improperly done, failing silently. (Also int is arbitrary, unhelpful for the uninitiated).

Reply via email to