Skip to content
New issue

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

CSharpUseCollectionInitializerDiagnosticAnalyzer.cs throws weird error #76910

Open
sergichamila opened this issue Jan 24, 2025 · 0 comments
Open
Assignees

Comments

@sergichamila
Copy link

Version Used:
dotnet 8.0.405
Microsoft.CodeAnalysis.CSharp.NetAnalyzers 7.0.3

Steps to Reproduce:

Image

Diagnostic Id:

Image

Expected Behavior:

No error or a warning is expected - the code compiles, but there is no compilation warning, just an error, without any suggestion how to fix it.

Actual Behavior:

An error appears

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Analyzers untriaged Issues and PRs which have not yet been triaged by a lead labels Jan 24, 2025
@CyrusNajmabadi CyrusNajmabadi self-assigned this Jan 24, 2025
@deepakrathore33 deepakrathore33 removed the untriaged Issues and PRs which have not yet been triaged by a lead label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants