diff --git a/src/Utilities/Compiler/Extensions/IOperationExtensions.cs b/src/Utilities/Compiler/Extensions/IOperationExtensions.cs index a41577ab41..4428898bce 100644 --- a/src/Utilities/Compiler/Extensions/IOperationExtensions.cs +++ b/src/Utilities/Compiler/Extensions/IOperationExtensions.cs @@ -40,7 +40,7 @@ internal static partial class IOperationExtensions { return beforeConversion ? GetReceiverType(firstArg.Value.Syntax, compilation, cancellationToken) : - firstArg.Type as INamedTypeSymbol; + firstArg.Value.Type as INamedTypeSymbol; } else if (invocation.TargetMethod.Parameters[0].IsParams) {