Unittests on a module
Dennis
dkorpel at gmail.com
Fri Jan 13 19:28:11 UTC 2023
On Friday, 13 January 2023 at 19:07:46 UTC, DLearner wrote:
> Is this intended?
It is by design, though opinions differ on whether it's a good
design.
> It's not a problem to add temporary
> ```
> void main() {
>
> }
> ```
> to the bottom of the module,
You can add the `-main` flag to make dmd automatically add such
an empty main function when there isn't a `main` already.
More information about the Digitalmars-d-learn
mailing list