-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
dotnet-csharp/svcerrors-warnings/subsvchelp wantedGood for community contributors to help [up-for-grabs]Good for community contributors to help [up-for-grabs]
Description
The code example we have for CS0675 is not particularly clear, as it doesn't really show the problem: it just becomes 0x100000001, which is exactly what was asked for. Instead, we should probably show (long)1 | -1
, as that will give 0xFFFFFFFF_FFFFFFFF rather than 0x00000001_FFFFFFFF, which is what one might expect to get when |
ing an int and a long here. It would also be good to show the results of |
operations, rather than just saying one is correct and one is not.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: ec0f0ac3-9ab3-5a9d-9b06-a3506dde43f4
- Version Independent ID: 77b65b08-268b-e309-d00a-4d6193a0d742
- Content: Compiler Warning (level 3) CS0675
- Content Source: docs/csharp/language-reference/compiler-messages/cs0675.md
- Product: dotnet-csharp
- Technology: csharp-diagnostics
- GitHub Login: @BillWagner
- Microsoft Alias: wiwagn
tannergooding
Metadata
Metadata
Assignees
Labels
dotnet-csharp/svcerrors-warnings/subsvchelp wantedGood for community contributors to help [up-for-grabs]Good for community contributors to help [up-for-grabs]