Skip to content

Commit

Permalink
Update src/Utilities/Compiler/Extensions/IMethodSymbolExtensions.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Buyaa Namnan <buyankhishig.namnan@microsoft.com>
  • Loading branch information
MartyIX and buyaa-n committed Nov 8, 2023
1 parent 4482368 commit 905cc3f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ private static bool HasOverriddenDisposeCoreAsyncMethodSignature(this IMethodSym
/// </summary>
private static bool HasVirtualDisposeCoreAsyncMethodSignature(this IMethodSymbol method, [NotNullWhen(returnValue: true)] INamedTypeSymbol? valueTask)
{
return (method.Name == "DisposeCoreAsync" || method.Name == "DisposeAsyncCore") &&
return (method.Name == "DisposeAsyncCore" || method.Name == "DisposeCoreAsync") &&
method.MethodKind == MethodKind.Ordinary &&
method.IsVirtual &&
SymbolEqualityComparer.Default.Equals(method.ReturnType, valueTask) &&
Expand Down

0 comments on commit 905cc3f

Please sign in to comment.