Fix issue with being able to MakeGenericMethod methods on generic types (#89615)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Fri, 28 Jul 2023 07:10:59 +0000 (16:10 +0900)
committerGitHub <noreply@github.com>
Fri, 28 Jul 2023 07:10:59 +0000 (00:10 -0700)
commit3ed1a7dbacb619462ec8b6859ae084467228177d
tree7755521e04a8998f746484ee59d3746f595c5a62
parentf11f9058eb83ba18cb9e32ba99d73d707cbf6119
Fix issue with being able to MakeGenericMethod methods on generic types (#89615)

The guarantees that one can always `MakeGeneric` instances over reference types should extend to generic methods on generic types.

We were previously not able to guarantee this, but #83438 made this possible.
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/UsageBasedMetadataManager.cs
src/tests/nativeaot/SmokeTests/Reflection/Reflection.cs