https://issues.dlang.org/show_bug.cgi?id=11008
ZombineDev <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |[email protected] Resolution|WONTFIX |--- --- Comment #6 from ZombineDev <[email protected]> --- I'm reopening, since it is useful to have the `-main` switch replace the user-defined function given that the default druntime behavior is to not run `main()` after executing unit tests, since dmd 2.090 - https://dlang.org/changelog/2.090.0.html#unittest-default | https://run.dlang.io/is/GzX7qt Currently, running `dub test --single` fails if there's a user-defined main: https://github.com/dlang/dub/issues/2122, because of this behavior. --
