dotnet / dotnet/csharplang

[Proposal]: Do not require fixing a fixed field of a ref struct

Open
#9,015 0 comments 0 reactions 1 assignee Claimed by @jaredpar View on GitHub
Proposal champion
Dominant language
C#
Stars
12.7k
Forks
1.1k
Avg merge
11h 1m
Merged PRs (30d)
3

Description

# Do not require fixing a fixed field of a ref struct

* Specification:
* Discussion: https://github.com/dotnet/csharplang/discussions/9014

## Summary
[summary]: #summary

A fixed statement should not be required on a fixed field of a ref struct, because it is never moveable.

Note for future LDM consideration: there is a bug tail involved with any fixed change. While this is probably not worth it on it's own merits, if we have other fixed work that result in refactoring this would be worth it at that point.

## Design meetings

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.