Update csharp/extractor/Semmle.Extraction.CSharp/Entities/Method.cs

Co-authored-by: Michael B. Gale <mbg@github.com>
This commit is contained in:
Tamás Vajk
2023-06-06 16:20:48 +02:00
committed by GitHub
parent a4dec591c7
commit e8f56f2981

View File

@@ -245,7 +245,7 @@ namespace Semmle.Extraction.CSharp.Entities
// Retrieve the original method kind
if (methodDecl.ExplicitInterfaceImplementations.IsEmpty)
{
throw new InternalError(methodDecl, $"Couldn't get the original method kind for explicit interface implementation");
throw new InternalError(methodDecl, $"Couldn't get the original method kind for an explicit interface implementation");
}
methodKind = methodDecl.ExplicitInterfaceImplementations.Select(m => m.MethodKind).First();