We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97cd006 commit 4eee6efCopy full SHA for 4eee6ef
csharp/extractor/Semmle.Extraction.CSharp/Entities/Constructor.cs
@@ -47,7 +47,10 @@ protected override void ExtractInitializers(TextWriter trapFile)
47
var baseType = Symbol.ContainingType.BaseType;
48
if (baseType is null)
49
{
50
- Context.ModelError(Symbol, "Unable to resolve base type in implicit constructor initializer");
+ if (Symbol.ContainingType.SpecialType != SpecialType.System_Object)
51
+ {
52
+ Context.ModelError(Symbol, "Unable to resolve base type in implicit constructor initializer");
53
+ }
54
return;
55
}
56
0 commit comments