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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Version Used: Compiler version: '4.13.0-3.25105.4 (400efa2)'. Language version: 13.0.
Steps to Reproduce:
_ = Test(new Dictionary<string, object>()); static Dictionary<string, object> Test(IReadOnlyDictionary<string, object> d) { return new(d); }
A minimal repro, with source-code provided, is ideal. Most compiler/language issues can be distilled into a snippet that can be pasted into sharplab.
Diagnostic Id: IDE0306, "Collection initialization can be simplified"
Expected Behavior:
I shouldn't be getting this warning here.
Actual Behavior:
I get the IDE0306 warning:
Applying the code fixer produces invalid code:
cc. @CyrusNajmabadi
The text was updated successfully, but these errors were encountered:
I can also repro with Queue<T>:
Queue<T>
Sorry, something went wrong.
No branches or pull requests
Version Used: Compiler version: '4.13.0-3.25105.4 (400efa2)'. Language version: 13.0.
Steps to Reproduce:
A minimal repro, with source-code provided, is ideal. Most compiler/language issues can be distilled into a snippet that can be pasted into sharplab.
Diagnostic Id: IDE0306, "Collection initialization can be simplified"
Expected Behavior:
I shouldn't be getting this warning here.
Actual Behavior:
I get the IDE0306 warning:
Applying the code fixer produces invalid code:
cc. @CyrusNajmabadi
The text was updated successfully, but these errors were encountered: