Test subject:
mainFile.d
import otherFile; void main(){ }
otherFile.d
import std.stdio : writeln; import std.file : mkdir; int main(){ writeln("test "); return 0; }
Error, main() method has been imported: how to disallow main() method from being imported?
otherFile.d(5): Error: only one main, WinMain, or DllMain allowed. Previously found main at mainFile.d(3)