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
Version Used: VS2019 16.6.3
Steps to Reproduce:
class Program { static Dictionary<string, string> D; static void Main(string[] args) { if (D?.TryGetValue("k", out var value) == true) { var v = value; } } }
Expected Behavior:
No error.
Actual Behavior:
Error CS0165 Use of unassigned local variable 'value'
The text was updated successfully, but these errors were encountered:
Transfered to C# lang, as this is a language change request. Virtually certain it's a dupe of something that already exists :)
Sorry, something went wrong.
Duplicate of #3365.
Closing as a duplicate.
No branches or pull requests
Version Used:
VS2019 16.6.3
Steps to Reproduce:
Expected Behavior:
No error.
Actual Behavior:
Error CS0165 Use of unassigned local variable 'value'
The text was updated successfully, but these errors were encountered: