Could assertThrown be made safe/trusted?

simendsjo simendsjo at
Tue Jan 17 06:27:04 PST 2012

At the top of the module:

unittest {

Ooops. AssertThrown not safe.

Changing the top to:
version(Unittest) {}
else { @safe: }

makes it work, but then I'll need to use that idom in all safe modules 
as assert*Thrown is handly methods.

More information about the Digitalmars-d-learn mailing list