unittest blocks not being run inside of class and struct templates

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jul 24 19:18:41 PDT 2017


On Tuesday, 25 July 2017 at 02:11:20 UTC, NoBigDeal256 wrote:
> it passes when it should fail because the unittest block is 
> never executed. Why is this?

Did you actually instantiate the class somewhere? A template has 
no concrete code unless created with an argument somewhere...


More information about the Digitalmars-d-learn mailing list