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

Warning AD0001 #1346

Closed
daze99 opened this issue Jan 8, 2024 · 0 comments · Fixed by #1350
Closed

Warning AD0001 #1346

daze99 opened this issue Jan 8, 2024 · 0 comments · Fixed by #1350

Comments

@daze99
Copy link

daze99 commented Jan 8, 2024

Product and Version Used:
Roslynator 4.8.0

Steps to Reproduce:

ICollection<string> addresses = new[]
{
    "address 1",
    "address 2"
};

Compiler Error:

System.ArgumentException: Reported diagnostic with ID 'RCS1250' is not supported by the analyzer. (Parameter 'diagnostic')
   at Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalysisContextHelpers.VerifyArguments(Diagnostic diagnostic, Compilation compilation, Func`3 isSupportedDiagnostic, CancellationToken cancellationToken)
   at Microsoft.CodeAnalysis.Diagnostics.SyntaxNodeAnalysisContext.ReportDiagnostic(Diagnostic diagnostic)
   at Roslynator.CSharp.Analysis.ImplicitOrExplicitCreationAnalysis.AnalyzeImplicit(SyntaxNodeAnalysisContext& context)
   at Roslynator.CSharp.Analysis.ImplicitOrExpressionArrayCreationAnalysis.AnalyzeImplicitCreation(SyntaxNodeAnalysisContext& context)
   at Roslynator.CSharp.Analysis.UseExplicitlyOrImplicitlyTypedArrayAnalyzer.<>c.<Initialize>b__3_1(SyntaxNodeAnalysisContext c)
   at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows_NoLock[TArg](DiagnosticAnalyzer analyzer, Action`1 analyze, TArg argument, Nullable`1 info, CancellationToken cancellationToken)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants