Description
Abstract implementations of Type.IsVisible and Type.ContainsGenericParameters do not handle function pointers
Reproduction Steps
unsafe
{
Console.WriteLine(typeof(delegate* <string>).IsVisible);
Console.WriteLine(typeof(delegate* <PrivateType>).IsVisible);
}
class PrivateType { }
Expected behavior
true false with dotnet run (correct).
Actual behavior
true true with PublishAot=true
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response