mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
Handle system.object missing base type
This commit is contained in:
@@ -47,7 +47,10 @@ namespace Semmle.Extraction.CSharp.Entities
|
||||
var baseType = Symbol.ContainingType.BaseType;
|
||||
if (baseType is null)
|
||||
{
|
||||
Context.ModelError(Symbol, "Unable to resolve base type in implicit constructor initializer");
|
||||
if (Symbol.ContainingType.SpecialType != SpecialType.System_Object)
|
||||
{
|
||||
Context.ModelError(Symbol, "Unable to resolve base type in implicit constructor initializer");
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user