Static unittests?
Jacob Carlborg
doob at me.com
Mon Aug 12 04:46:03 PDT 2013
On 2013-08-05 16:24, Andrej Mitrovic wrote:
> Nope.
>
> Interestingly, in git-head we now have the getUnitTests trait, however
> this won't allow us to call the tests at compile time, I get back:
>
> Error: __unittestL5_1 cannot be interpreted at compile time, because
> it has no available source code
>
> This trait is fairly new, so maybe we could expand on this to allow
> invoking the tests at compile time.
It does work, at least when I added it:
http://forum.dlang.org/thread/ks1brj$1l6c$1@digitalmars.com
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list