We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
public class C { public nint Test(nuint x) => -(nint)x;// or `(nint)(0-x)` as the decompile result for cast from uint to int }
error CS0023: Operator '-' cannot be applied to operand of type 'nuint'
public class C { public nint Test(nuint x) { return -x; } }
The text was updated successfully, but these errors were encountered:
f327668
Fix icsharpcode#2407: Operator '-' cannot be applied to operand of ty…
9b162c7
…pe 'nuint'
No branches or pull requests
Input code
Erroneous output
error CS0023: Operator '-' cannot be applied to operand of type 'nuint'
Details
The text was updated successfully, but these errors were encountered: