Skip to content

Commit 16898d3

Browse files
committed
fix
1 parent 8d6a7a9 commit 16898d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Analyzers/CSharp/Analysis/ImplementExceptionConstructorsAnalyzer.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,10 @@ private static void AnalyzeNamedType(SymbolAnalysisContext context, INamedTypeSy
6767

6868
var classDeclaration = (ClassDeclarationSyntax)symbol.GetSyntax(context.CancellationToken);
6969

70+
#if ROSLYN_4_0
7071
if (classDeclaration.ParameterList is not null)
7172
return;
73+
#endif
7274

7375
DiagnosticHelpers.ReportDiagnostic(context, DiagnosticRules.ImplementExceptionConstructors, classDeclaration.Identifier);
7476
}

0 commit comments

Comments
 (0)