Ensure consistent reflectability for generic methods (#70977)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Tue, 21 Jun 2022 11:32:43 +0000 (20:32 +0900)
committerGitHub <noreply@github.com>
Tue, 21 Jun 2022 11:32:43 +0000 (20:32 +0900)
commit3b8a6f49bb965df0d64e819c213f3f0d796492ad
treea57e63c48dda2f41e7386972fa248efb5333e1bf
parent5889de5fd2cb72dab4a1cfbdfb35466ec5a45f13
Ensure consistent reflectability for generic methods (#70977)

If we have a method body for `SomeMethod<Foo>` and `SomeMethod<T>` was decided to be reflection-visible, ensure `SomeMethod<Foo>` is also reflection-visible.
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/GenericDictionaryNode.cs
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/MetadataManager.cs
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/UsageBasedMetadataManager.cs
src/tests/nativeaot/SmokeTests/Reflection/Reflection.cs