Closed vladimmi closed 3 years ago
Same with dmd:
C:\Users\vladi\AppData\Local\dub\packages\d-unit-0.9.3\d-unit\src\dunit\framework.d(47,9): Error: only one `main`, `WinMain`, or `DllMain` allowed. Previously found `main` at C:\Users\vladi\AppData\Local\Temp\dub_test_root_60265411_8788_438b_aa30_8ddaaf0d5231.d(12,12)
dmd failed with exit code 1.
It seems the issue is in dub test
which (I suspect) generates its own main()
too. Custom configuration seems to fix it.
Exactly, see example here:
I have simple test with
mixin Main;
in the end like suggested:dub test
fails with: