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

[Proposal]: Relax ordering constraints around ref and partial modifiers on type declarations #8966

Open
RikkiGibson opened this issue Jan 6, 2025 · 0 comments
Assignees
Milestone

Comments

@RikkiGibson
Copy link
Contributor

RikkiGibson commented Jan 6, 2025

Discussion: #8965

Currently, partial must appear directly before struct, class, or another type declaration keyword. If the type is a ref struct, ref must appear immediately before partial or struct. It seems likely that various other keywords could be used to disambiguate these contextual modifiers and allow us to relax the constraints on where partial and ref can appear in the modifier list.

See https://github.com/dotnet/csharplang/blob/master/meetings/2017/LDM-2017-12-04.md
See also #8134

@RikkiGibson RikkiGibson self-assigned this Jan 6, 2025
@RikkiGibson RikkiGibson added this to the Any Time milestone Jan 6, 2025
@dotnet dotnet locked and limited conversation to collaborators Jan 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant