Skip to content

Missing unsafe blocks in anonymous field helpers with compatible-codegen #492

Closed
@BigWingBeat

Description

@BigWingBeat

If the compatible-codegen config option is enabled, the anonymous field helper ref properties (Those disabled by exclude-anonymous-field-helpers) are generated with a fixed block and pointer member accesses, but without a corresponding unsafe block, resulting in the generated code failing to compile with CS0214: Pointers and fixed size buffers may only be used in an unsafe context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions