<div dir="ltr">I just filed a bug report (<a href="http://d.puremagic.com/issues/show_bug.cgi?id=11067">http://d.puremagic.com/issues/show_bug.cgi?id=11067</a>)<div><br></div><div>Is there a workaround that keeps same syntax for user code?</div>
<div>Use case: i'm generating those from swig(+modifications to map C++ templates to D templates) so I can't factor the template bodies for different template instantiations into a single definition.</div><div><br>
</div><div>----</div><div><pre class="" id="comment_text_0" style="font-size:medium;white-space:pre-wrap;width:50em;color:rgb(0,0,0)">A!(A!(int)) detections;
struct A(T) if(is(T==int)) {}
struct A(T) if(is(T==A!(int))) {}</pre><pre class="" id="comment_text_0" style="font-size:medium;white-space:pre-wrap;width:50em;color:rgb(0,0,0)">----</pre></div></div>