Which declares two enums named MY_CONSTANT. This will not compile and because of this it should be caught earlier in the process to alert users that they have an error.
Any constant that is defined more than once (even if it has the same value) should likely result in an error alerting the user that they're doing something wrong.
Message generation currently allows a message that contains duplicate constants to succeed through generation. For example:
TestConstant.msg:
Would succeed and generate the following struct:
Which declares two enums named MY_CONSTANT. This will not compile and because of this it should be caught earlier in the process to alert users that they have an error.
Any constant that is defined more than once (even if it has the same value) should likely result in an error alerting the user that they're doing something wrong.