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

Do not check static methods for variance safety rules #40152

Conversation

davidwrighton
Copy link
Member

  • There are no variance restrictions on the method signature of static members

This change brings the coreclr runtime into compliance with section 9.7 of Partition II of the ECMA 335 spec.

Fixes #39612

@davidwrighton
Copy link
Member Author

@AlekseyTs This is the change you requested.
@vargaz I believe that I'll get adequate testing with the checked in test, in both CoreCLR and Mono, but please let me know if you disagree.

Copy link
Member

@janvorli janvorli left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@davidwrighton
Copy link
Member Author

The mono failures are due to the CopyCtor test I checked in yesterday which shouldn't run on Mono. I've submitted a PR to exclude them from running. The x86 CoreCLR test failures are due to the same test, but shouldn't be failing. I'm investigating this now.

@davidwrighton davidwrighton merged commit a5e2249 into dotnet:master Jul 30, 2020
Jacksondr5 pushed a commit to Jacksondr5/runtime that referenced this pull request Aug 10, 2020
- There are no variance restrictions on the method signature of static members

This change brings the coreclr runtime into compliance with section 9.7 of Partition II of the ECMA 335 spec.
@karelz karelz added this to the 5.0.0 milestone Aug 18, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 8, 2020
@davidwrighton davidwrighton deleted the no_variance_check_for_static_method_sigs branch April 20, 2021 17:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
5 participants