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

Freshness pass on access modifiers #39883

Merged
merged 3 commits into from
Mar 12, 2024

Conversation

BillWagner
Copy link
Member

@BillWagner BillWagner commented Mar 8, 2024

Contributes to #39819

Perform an edit pass, and address open issues:


Internal previews

📄 File 🔗 Preview link
docs/csharp/fundamentals/types/anonymous-types.md Anonymous types
docs/csharp/programming-guide/classes-and-structs/access-modifiers.md "Access Modifiers - C# Programming Guide"

Contributes to dotnet#39819

Perform an edit pass, and address open issues:

- Fixes dotnet#25518:  Explain that all partial declarations must match, and not declaring an accessibility means means it has any declared accessibility on the other declaration.
- Fixes dotnet#27155 Ret-con this from the day when `record` structs didn't exist. Now, `record` is defined as a modifier on either a `struct` or `class` type.
- Fixes dotnet#27196: Added clarifying remarks that "type" had meant a "type" declared directly in a namespace. This still has meaning in the programming guide, rather than using the more normative language of the standard.
- Fixes dotnet#27197: Update the language for clarity.
@BillWagner BillWagner enabled auto-merge (squash) March 11, 2024 20:17
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
@BillWagner BillWagner merged commit 627d888 into dotnet:main Mar 12, 2024
8 checks passed
@BillWagner BillWagner deleted the access-modifier-updates branch March 12, 2024 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment