Skip to content

Allow overridden properties that inherit attributes #556

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

magneticflux-
Copy link

Previously, the property in the base class and the property in the subclass would both be returned, causing us to complain about duplicate arguments/options that are actually the same.

Closes #555

Previously, the property in the base class and the property in the subclass would both be returned, causing us to complain about duplicate arguments/options that are actually the same.

Closes natemcmaster#555
@magneticflux-
Copy link
Author

I think this handles all cases of property overriding while still correctly flagging property hiding/similar-looking private properties, but I'm new to C# so I might have missed an edge case!

@magneticflux-
Copy link
Author

@natemcmaster Just a friendly reminder!

If you'd like, I could also try adding a regression test for this specific case of attribute inheritance so it doesn't get inadvertently removed again.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support attributes with overrides
1 participant