Skip to content

Abstract implementations of Type.IsVisible and Type.ContainsGenericParameters do not handle function pointers #122223

@jkotas

Description

@jkotas

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions