@@ -2995,7 +2995,6 @@ private void CoerceArguments<TMember>(
29952995 ArrayBuilder < BoundExpression > arguments ,
29962996 BindingDiagnosticBag diagnostics ,
29972997 TypeSymbol ? receiverType ,
2998- RefKind ? receiverRefKind ,
29992998 uint receiverEscapeScope )
30002999 where TMember : Symbol
30013000 {
@@ -3014,7 +3013,7 @@ private void CoerceArguments<TMember>(
30143013 Debug . Assert ( argument is BoundUnconvertedInterpolatedString or BoundBinaryOperator { IsUnconvertedInterpolatedStringAddition : true } ) ;
30153014 TypeWithAnnotations parameterTypeWithAnnotations = GetCorrespondingParameterTypeWithAnnotations ( ref result , parameters , arg ) ;
30163015 reportUnsafeIfNeeded ( methodResult , diagnostics , argument , parameterTypeWithAnnotations ) ;
3017- arguments [ arg ] = BindInterpolatedStringHandlerInMemberCall ( argument , arguments , parameters , ref result , arg , receiverType , receiverRefKind , receiverEscapeScope , diagnostics ) ;
3016+ arguments [ arg ] = BindInterpolatedStringHandlerInMemberCall ( argument , arguments , parameters , ref result , arg , receiverType , receiverEscapeScope , diagnostics ) ;
30183017 }
30193018 // https://github.com/dotnet/roslyn/issues/37119 : should we create an (Identity) conversion when the kind is Identity but the types differ?
30203019 else if ( ! kind . IsIdentity )
@@ -5723,7 +5722,7 @@ internal bool TryPerformConstructorOverloadResolution(
57235722
57245723 if ( succeededIgnoringAccessibility )
57255724 {
5726- this . CoerceArguments < MethodSymbol > ( result . ValidResult , analyzedArguments . Arguments , diagnostics , receiverType : null , receiverRefKind : null , receiverEscapeScope : Binder . ExternalScope ) ;
5725+ this . CoerceArguments < MethodSymbol > ( result . ValidResult , analyzedArguments . Arguments , diagnostics , receiverType : null , receiverEscapeScope : Binder . ExternalScope ) ;
57275726 }
57285727
57295728 // Fill in the out parameter with the result, if there was one; it might be inaccessible.
@@ -7967,7 +7966,7 @@ private BoundExpression BindIndexerOrIndexedPropertyAccess(
79677966 uint receiverEscapeScope = property . RequiresInstanceReceiver && receiverOpt != null
79687967 ? receiverRefKind ? . IsWritableReference ( ) == true ? GetRefEscape ( receiverOpt , LocalScopeDepth ) : GetValEscape ( receiverOpt , LocalScopeDepth )
79697968 : Binder . ExternalScope ;
7970- this . CoerceArguments < PropertySymbol > ( resolutionResult , analyzedArguments . Arguments , diagnostics , receiverOpt ? . Type , receiverRefKind , receiverEscapeScope ) ;
7969+ this . CoerceArguments < PropertySymbol > ( resolutionResult , analyzedArguments . Arguments , diagnostics , receiverOpt ? . Type , receiverEscapeScope ) ;
79717970
79727971 var isExpanded = resolutionResult . Result . Kind == MemberResolutionKind . ApplicableInExpandedForm ;
79737972 var argsToParams = resolutionResult . Result . ArgsToParamsOpt ;
0 commit comments