E.g. struct A(T) { ... unittest { ... } }
... auto a = A!int; auto b = A!int; auto c = A!double;The unittest block will be instantiated twice (per A!int and A!double). But in some (many ?) cases unittest doesn't even exercise the generics, merely using some particular type.
What is it, a bug ?