Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
duplicate methods with the same name but different return types #771
Umple accepts the following example:
It is not acceptable in Java and C++ to have two methods with the same name and different return types. I'm not sure about othe languages but Umple should avoid generating a wrong code.
changed the title
duplicate methods with the same name but different return type
Mar 12, 2016
If I have duplicated methods that return the SAME types, a warning will be generated.
This warning has not been developed in user manual yet, so I assume I should document the warning in user manual if I like to use it.
I have two solutions to propose:
I personally support 1st propose as I believe use the same method name in the same package is not necessary for any language and can be achieved by other approaches.
Please let me know if I am on the right track, and also I am still not sure where should I fix it in the code. Could someone point out where should I make changes in the code or which document I should read?(I've been reading a lot documentations those days but still don't have a clue)
I would say first document the error code 49. Don't forget to point out this in you PR's comment because Tim needs to review the text.
Regarding the place to start, please check