[release/8.0] Fix Type.ContainsGenericParameters for function pointers (#90963)
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Wed, 23 Aug 2023 21:44:09 +0000 (14:44 -0700)
committerGitHub <noreply@github.com>
Wed, 23 Aug 2023 21:44:09 +0000 (14:44 -0700)
commiteb124c5b6c07f91f8f5eb846e1db235fe84030a6
treecb27a9f936f74fb36801bba424fa03470572dbbb
parent482bfb96ccd63da733bea3fe1f7f65fb4a3b6c67
[release/8.0] Fix Type.ContainsGenericParameters for function pointers (#90963)

* Fix Type.ContainsGenericParameters for function pointers

Fixes #84916

* Fix System.Reflection.MetadataLoadContext

* Fix Mono

* Update test

---------

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
src/coreclr/vm/typedesc.cpp
src/coreclr/vm/typedesc.h
src/coreclr/vm/typehandle.cpp
src/libraries/Common/tests/System/FunctionPointerTests.cs
src/libraries/System.Reflection.MetadataLoadContext/src/System/Reflection/TypeLoading/Types/RoFunctionPointerType.cs
src/mono/System.Private.CoreLib/src/System/RuntimeType.Mono.cs