compiled with chpl b.chpl. Should main be run and should a be the main module that the compiler identifies? Today neither occurs.
This is due to this code:
which insists that, for something to be the main module, it has to be mentioned on the command line.
The language spec does describe the behavior of finding the main module from the main function here -- Modules — Chapel Documentation 1.25 and it doesn't say anything about requiring that the module be mentioned on the command line. So at the very least the spec needs to be updated.