Skip to content

[CoreCLR] UnsafeAccessorAttribute: Missing static modifier check for field #88858

@fanyang-mono

Description

@fanyang-mono

CoreCLR missed the check for when UnsafeAccessorKind is set to Field, the corresponding field shouldn't be static and vice/versa.

A new testcase was added in #88626 and it failed on CoreCLR.

Re-enable test: Verify_InvalidTargetUnsafeAccessor upon fixing this issue.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions