Skip to content

Commit 7cd2b05

Browse files
committed
Fix
1 parent 2d5a62f commit 7cd2b05

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

StyleCop.Analyzers/StyleCop.Analyzers/DocumentationRules/SA1648InheritDocMustBeUsedWithInheritingClass.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ private static void HandleMemberDeclaration(SyntaxNodeAnalysisContext context)
159159
}
160160
}
161161

162-
if (memberSyntax is ConstructorDeclarationSyntax && declaredSymbol is IMethodSymbol methodSymbol && methodSymbol.ContainingType?.BaseType != null)
162+
// "class Test {}" has assigne System.Object as its base type.
163+
if (memberSyntax is ConstructorDeclarationSyntax && declaredSymbol is IMethodSymbol methodSymbol && methodSymbol.ContainingType != null
164+
&& methodSymbol.ContainingType.BaseType?.SpecialType != SpecialType.System_Object)
163165
{
164166
return;
165167
}

0 commit comments

Comments
 (0)