New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors reported for modifier overloading should outright say that overloading is not allowed #12332
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This issue has been marked as stale due to inactivity for the last 90 days. |
Bad error messages are an annoyance that I'd really like to see fixed. Maybe we should create a catch-all issue for this but until then, I'm going to keep this one open. |
This issue has been marked as stale due to inactivity for the last 90 days. |
Hi everyone! This issue has been automatically closed due to inactivity. |
Error messages reported when you try to overload a modifier say that you cannot use the same name but do not say why. I think they should outright say that the cause of the error is that modifier overloading is not allowed. At least until we actually implement it (#72).
Example 1: straightforward overloading
Example 2: overloading by inheriting from two bases
This case is especially misleading because the message suggests that you should override the modifiers in the derived class but they aren't even virtual.
The text was updated successfully, but these errors were encountered: