-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
Milestone
Description
We need to split the "Duplicate identifier" error in to a suite of more detailed errors about various types of illegal merges. "Duplicate identifier" is too general. Some examples of cases that warrant their own message:
- Would be a legal merge (like module & module) but exports don't match
- Fundule in the wrong order
- Clodule in the wrong order
- Fundule in different files
- Clodule in different files
- Interface and enum can't merge
- Interface and class can't merge
- Class and enum can't merge
- Function and enum can't merge
Basically every illegal cell in the matrix of merges should have a separate error message (or some of them can be grouped together in terms of value/type/namespace space). For example:
Class cannot merge with any other type