Hello,

I have a module which is completelly @nogc, and as such I'd like to just say

   @nogc:

at the top of the file and be happy.

However, my unit tests for this same module do some GC allocation, so the module fails to compile.

Is there a way to disable @nogc for the unit tests only? Would this be a bad idea in some way I cannot see?

I suppose the same question is valid for other attributes, like 'nothrow' and '@safe'.

Thank you,

LMB