https://issues.dlang.org/show_bug.cgi?id=11133
--- Comment #3 from Jonathan M Davis <issues.dl...@jmdavisprog.com> --- Here's an example that has the problem with static if: /// struct S(R) { /// Some docs static if(is(R == string)) alias S = R; else alias S = int; /// unittest { S s; } } --