Validate static asserts

Dennis dkorpel at gmail.com
Fri Sep 9 17:35:44 UTC 2022


On Friday, 9 September 2022 at 16:41:54 UTC, Andrey Zherikov 
wrote:
> What's about new `compileOutput` trait that returns compiler 
> output?
> ```d
> static assert(__traits(compileOutput, { <my code> }) == 
> "message");
> ```

As a compiler dev, that sounds terrifying. It would make 
basically every change to dmd a breaking change.


More information about the Digitalmars-d-learn mailing list