Skip to content

Conversation

meaghanlewis
Copy link
Contributor

@meaghanlewis meaghanlewis commented Sep 4, 2025

Summary

Adds an example to show that assigning to a const value generates a CS0131 error.

Fixes #48254


Internal previews

📄 File 🔗 Preview link
docs/csharp/misc/cs0131.md Compiler Error CS0131

@meaghanlewis
Copy link
Contributor Author

@dotnet-policy-service agree company="Microsoft"

Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM @meaghanlewis

Let's :shipit:

@meaghanlewis meaghanlewis merged commit 51c337b into dotnet:main Sep 5, 2025
9 checks passed
@meaghanlewis meaghanlewis deleted the meaghanlewis-update-cs0131 branch September 5, 2025 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider an example using const

3 participants