Skip to content

Reflection regression - Type.GetType does not skip leading . #84644

Closed
@AndriySvyryd

Description

@AndriySvyryd

Description

Type.GetType does not find the type when type name starts with . (dot)..

Reproduction Steps

class MyType
{
    static void Main() => Console.WriteLine(Type.GetType(".MyType"));
}

Expected behavior

Type is found

Actual behavior

Type is not found

Regression?

Yes, this used to work on SDK 8.0.100-preview.4.23171.22

Known Workarounds

No response

Configuration

SDK 8.0.100-preview.4.23210.1
macOS-11.6.7
x64

Other information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions