<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><br></div><div>import std.stdio;</div><div>struct Foo(IF, size_t N) { }</div><div>
interface Bar { }</div><div>void main() {</div><div> void printFoo(T: Foo!(IF, N), IF, size_t N)(T foo)</div><div> if(is(IF == interface)) {</div><div> writeln("Type: ", T.stringof);</div><div> }</div><div>
Foo!(Bar, 1) foo;</div><div> printFoo(foo);</div><div>}</div><div><br></div>
</blockquote></div><br><div><br></div><div>Just tried and found that it works just fine with 2.053. If somebody provides a patch for 2.054, I will be happy to test on my bigger use cases. :-)</div><div><br></div><div>Regards</div>
<div>- Puneet</div>