AFAIK D has intentionally simplified resolution rules to make it possible to reason about what is best match without referring to copy of ANSI standard :) And plain unconstrained `T` is thus as good match as any other.

In your example intended approach is to either put `if(someCondition!T)` into original template as another `static if` branch or turn first template into constrained one too.

Reply via email to