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 incorrect covariant returns tests #84615

Merged
merged 1 commit into from
Apr 11, 2023

Conversation

MichalStrehovsky
Copy link
Member

The intention of the methods is to override a base method, but the signature is wrong so they introduce a new slot instead. The test is not testing what it wanted to tests (that the override is not reachable) because we would never call this new method through a virtual call.

!0 and !1 corresponds to UNUSED1 and UNUSED2.

Peeled off from #84404 so that I can get a review.

Cc @dotnet/ilc-contrib

The intention of the methods is to override a base method, but the signature is wrong so they introduce a new slot instead. The test is not testing what it wanted to tests (that the override is not reachable) because we would never call this new slot method.

`!0` and `!1` corresponds to `UNUSED1` and `UNUSED2`.
@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Apr 11, 2023
@MichalStrehovsky MichalStrehovsky added area-TypeSystem-coreclr and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Apr 11, 2023
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!

@VSadov
Copy link
Member

VSadov commented Apr 11, 2023

Thanks!!

@MichalStrehovsky MichalStrehovsky merged commit 682e1b1 into dotnet:main Apr 11, 2023
@MichalStrehovsky MichalStrehovsky deleted the badtests branch April 11, 2023 23:45
@ghost ghost locked as resolved and limited conversation to collaborators May 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants