Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
BigWingBeat opened this issue Nov 14, 2023 · 0 comments · Fixed by #494
Closed

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

BigWingBeat opened this issue Nov 14, 2023 · 0 comments · Fixed by #494

Comments

@BigWingBeat
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant