ollef / sixten

Functional programming with fewer indirections
BSD 3-Clause "New" or "Revised" License
759 stars 26 forks source link

Handle multiple modules with the same name #130

Closed ollef closed 5 years ago

ollef commented 5 years ago

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.