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
namespace NullForgivingOperatorNamespace { public class NullForgivingOperatorClass { public void NullForgivingOperatorMethod() { int? x = null; string s = x?.ToString(); } } }
namespace NullForgivingOperatorNamespace; public class NullForgivingOperatorClass { public void NullForgivingOperatorMethod() { string s = ((int)null?).ToString(); } }
the build errors are:
NullForgivingOperatorClass.cs(7,25): error CS1525: Invalid expression term ')' NullForgivingOperatorClass.cs(7,25): error CS1003: Syntax error, ':' expected
This issue was found when trying to write sample input code for #3180.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Input code
Decompiled code
the build errors are:
Details
This issue was found when trying to write sample input code for #3180.
The text was updated successfully, but these errors were encountered: