When I right-click int
in my code and select "Go To Definition," Visual Studio opens a file titled "Int32 [from metadata]". This file includes the following line:
public const Int32 MinValue = --2147483648;
What is the meaning of the double -- sign?
I am running Visual Studio 15.8.4. Based on information in the comments, this is not reproducible on all versions of Visual Studio 2017.
vcsjones pointed to the newly created bug report and this post appeared there:
CyrusNajmabadi commented
This is probably a bug i introduced when i fixed up how literals were converted to syntax nodes. There was probably some special casing here that added a - sign. And once the underlying helper was fixed we got double negation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With