Skip to content

Conversation

StuartMosquera
Copy link
Contributor

@StuartMosquera StuartMosquera commented Aug 1, 2025

Summary

This PR addresses issue #46891 by adding a subtle clarification regarding overloading of the ++ and -- operators in C# 14.

Fixes #46891


Internal previews

📄 File 🔗 Preview link
docs/csharp/language-reference/operators/operator-overloading.md Operator overloading - predefined unary, arithmetic, equality, and comparison operators

@StuartMosquera StuartMosquera requested review from BillWagner and a team as code owners August 1, 2025 21:03
@dotnetrepoman dotnetrepoman bot added this to the August 2025 milestone Aug 1, 2025
@dotnet-policy-service dotnet-policy-service bot added dotnet-csharp/svc lang-reference/subsvc community-contribution Indicates PR is created by someone from the .NET community. labels Aug 1, 2025
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, with one minor wording update.

@BillWagner BillWagner enabled auto-merge (squash) August 4, 2025 16:25
@BillWagner BillWagner merged commit 89db11c into dotnet:main Aug 4, 2025
8 checks passed
@StuartMosquera StuartMosquera deleted the add-operator-overloading-clarification branch August 4, 2025 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-contribution Indicates PR is created by someone from the .NET community. dotnet-csharp/svc lang-reference/subsvc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect statement about increment/decrement operator overloading in C# docs
2 participants