Unittest Absurdity

jfondren julian.fondren at gmail.com
Fri Aug 5 01:38:48 UTC 2022


On Friday, 5 August 2022 at 01:25:50 UTC, Ruby The Roobster wrote:
> On Friday, 5 August 2022 at 01:23:40 UTC, Ruby The Roobster 
> wrote:
>> [SNIP]
>> Any function other than an operator overload seems to work 
>> fine.
>
> Also, this isn't mentioned in the spec.
>
> Additional Information:
>
> Fails for both DMD and LDC on Windows x86_64 for dmd v2.100.1

unittest blocks are just anonymous functions. They're not a 
special environment and there's nothing you can do here that 
wouldn't be necessary in any other user of your code. You have 
some other problem (which could very well be a compiler bug.)


More information about the Digitalmars-d-learn mailing list