<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I don’t know if this has come before (I tried searching but it’s not easy with the mailing lists system); sorry in advance if that’s the case.<div class=""><br class=""></div><div class="">I’ve been using more generics lately, and I’ve come to a point where it would be really nice to check if my types are correctly specified so that a wrong combination isn’t possible because the compiler will not allow it. The problem is, I can’t do this using unit testing, because if everything is correct, the code won’t compile, and then the tests will fail. I’m guessing there’s currently no way to do this? I did some googling and I only found something like this for boost (compile-fail):</div><div class=""><br class=""></div><div class=""><a href="http://www.boost.org/build/doc/html/bbv2/builtins/testing.html" class="">http://www.boost.org/build/doc/html/bbv2/builtins/testing.html</a></div><div class=""><br class=""></div><div class="">Regards</div><div class="">José Manuel</div></body></html>