Since files don't necessarily correspond to modules (currently), we need to handle the case where two files define the same module. I believe this also happens if you create two files without a module header (which will default to having the name Main).
Either we allow it and merge the module exports after scope checking, or we make it an error.
Since files don't necessarily correspond to modules (currently), we need to handle the case where two files define the same module. I believe this also happens if you create two files without a module header (which will default to having the name
Main
).Either we allow it and merge the module exports after scope checking, or we make it an error.