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

[C#] Add required modifier #3928

Merged
merged 2 commits into from
Feb 18, 2024
Merged

[C#] Add required modifier #3928

merged 2 commits into from
Feb 18, 2024

Conversation

deathaxe
Copy link
Collaborator

Resolves #3926

This commit adds required modifier which has been added by C#11.

see: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/required

It adjusts readonly related patterns to ensure both can appear next to each other.

Resolves sublimehq#3926

This commit adds `required` modifier which has been added by C#11.

see: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/required
This commit scopes `readonly` modifier more lazily to improve
interoperability with `required` keyword.
@deathaxe deathaxe merged commit f4092be into sublimehq:master Feb 18, 2024
2 checks passed
@deathaxe deathaxe deleted the pr/cs/fix branch February 18, 2024 19:32
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 this pull request may close these issues.

[C#] required field
3 participants