expose class declared in unittest

rcor via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jun 25 13:25:49 PDT 2014


> I don't completely understand your problem, but have you tried 
> marking the class as static?
>
> static class Dummy { ... }

I was about to post links to the actual code to make it more 
clear, but that did the trick. Thanks for the fast reply.

Just to make sure - given:
unittest {
   static class Dummy { ... }
}

Dummy will not exist unless compiled with -unittest, correct?


More information about the Digitalmars-d-learn mailing list