-
Notifications
You must be signed in to change notification settings - Fork 4.2k
VS shows cast to (ulong) as reduncant when its not #31303
Copy link
Copy link
Closed
Labels
Area-IDEBugDeveloper CommunityThe issue was originally reported on https://developercommunity.visualstudio.comThe issue was originally reported on https://developercommunity.visualstudio.comhelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on itThe issue is "up for grabs" - add a comment if you are interested in working on it
Milestone
Metadata
Metadata
Assignees
Labels
Area-IDEBugDeveloper CommunityThe issue was originally reported on https://developercommunity.visualstudio.comThe issue was originally reported on https://developercommunity.visualstudio.comhelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on itThe issue is "up for grabs" - add a comment if you are interested in working on it
Type
Fields
Give feedbackNo fields configured for issues without a type.
Consider the following C# code:
Here, VS 15.9 will show that the "(ulong)" cast before number2 is redundant. However, actually it's not redundant, because when you remove it, the output when running the program will change from:
FFFFFFFFFFFFFF00
to:
00000000FFFFFF00
Thanks!
This issue has been moved from https://developercommunity.visualstudio.com/content/problem/385829/vs-shows-cast-to-ulong-as-reduncant-when-its-not.html
VSTS ticketId: 731917
These are the original issue comments:
(no comments)
These are the original issue solutions:
(no solutions)