Skip to content
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

Fix NativeAOT warnings on comparers. #35441

Closed
wants to merge 1 commit into from

Conversation

cincuranet
Copy link
Contributor

These were easy wins. :)

@cincuranet cincuranet requested a review from a team as a code owner January 9, 2025 12:41
@cincuranet cincuranet requested a review from Copilot January 9, 2025 12:42

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

public class GeometryValueComparer
<[DynamicallyAccessedMembers(
DynamicallyAccessedMemberTypes.PublicMethods
| DynamicallyAccessedMemberTypes.NonPublicMethods
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Am curious, why are non-public methods needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's what the base class defines and hence needs to be specified also downstream.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we remove it on the base?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, agreed - if we're doing work on this it's worth getting to the bottom of existing annotations too, they may be wrong.

@cincuranet
Copy link
Contributor Author

Closing this. I decided to not do it in small pieces, because it would be PIA to keep in sync. I'll do bigger chunks.

@cincuranet cincuranet closed this Jan 10, 2025
@cincuranet cincuranet deleted the easy-nativeaot-warnings branch January 13, 2025 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants