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 Type.ContainsGenericParameters for function pointers #90864

Merged
merged 4 commits into from
Aug 21, 2023

Conversation

jkotas
Copy link
Member

@jkotas jkotas commented Aug 20, 2023

Fixes #84916

@jkotas jkotas marked this pull request as ready for review August 20, 2023 22:01
@ghost ghost assigned jkotas Aug 20, 2023
@ghost
Copy link

ghost commented Aug 20, 2023

Tagging subscribers to this area: @dotnet/area-system-reflection
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes #84916

Author: jkotas
Assignees: -
Labels:

area-System.Reflection

Milestone: -

@@ -104,6 +104,31 @@ BOOL TypeDesc::IsSharedByGenericInstantiations()
return FALSE;
}

BOOL TypeDesc::ContainsGenericVariables(BOOL methodOnly)
Copy link
Member Author

Choose a reason for hiding this comment

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

The implementation mirrors structure of IsSharedByGenericInstantiations

@jkotas
Copy link
Member Author

jkotas commented Aug 20, 2023

/azp run runtime-extra-platforms

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jkotas
Copy link
Member Author

jkotas commented Aug 21, 2023

/azp run runtime-extra-platforms

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jkotas
Copy link
Member Author

jkotas commented Aug 21, 2023

/azp run runtime-extra-platforms

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@steveharter steveharter left a comment

Choose a reason for hiding this comment

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

Thanks

src/coreclr/vm/typedesc.cpp Show resolved Hide resolved
src/libraries/Common/tests/System/FunctionPointerTests.cs Outdated Show resolved Hide resolved
Copy link
Member

@ivanpovazan ivanpovazan left a comment

Choose a reason for hiding this comment

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

The Mono part looks good, thank you!

@jkotas jkotas merged commit af95bed into dotnet:main Aug 21, 2023
168 of 172 checks passed
@jkotas jkotas deleted the issue-84916 branch August 21, 2023 22:38
@steveharter
Copy link
Member

Consider backporting to release/8.0; missing functionality for new feature added in 8.0.

cc @ericstj

@jkotas
Copy link
Member Author

jkotas commented Aug 22, 2023

/backport to release/8.0

@github-actions
Copy link
Contributor

Started backporting to release/8.0: https://github.com/dotnet/runtime/actions/runs/5944846172

@ghost ghost locked as resolved and limited conversation to collaborators Sep 22, 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.

ContainsGenericParameters not reported for function pointer types
3 participants