Skip to content

Mono cannot handle certain legal self-recursive type loads involving static fields #118472

@davidwrighton

Description

@davidwrighton

Description

While fixing issue #104511 with PR #118413 to CoreCLR I've found that the new test I added continues to fail on Mono.

Reproduction Steps

Run the src/tests/Loader/classloader/Statics/Regressions/SelfReferentialStatics/SelfReferentialStatics.csproj test under mono.

Expected behavior

It should pass

Actual behavior

It doesn't.

Regression?

No

Known Workarounds

Put the static field in a nested type or other unrelated type.

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions