-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid span conversion in delegate extension receiver #74044
Avoid span conversion in delegate extension receiver #74044
Conversation
It looks like there is still an open question in the speclet about whether to take the breaking change or not. Was that discussed in LDM? |
Not yet, I'm optimistically assuming we won't take a breaking change here. But if we will, we can always revert this. Or we can postpone this PR until after LDM if you prefer. |
Is this change blocking other work? If not, I think my preference is to postpone this PR until after an LDM decision. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (commit 2)
return IsValidExtensionMethodThisArgConversion(conversion) ? conversion : Conversion.NoConversion; | ||
} | ||
|
||
// Spec 7.6.5.2: "An extension method ... is eligible if ... [an] implicit identity, reference, | ||
// or boxing conversion exists from expr to the type of the first parameter" | ||
public Conversion ClassifyImplicitExtensionMethodThisArgConversion(BoundExpression sourceExpressionOpt, TypeSymbol sourceType, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) | ||
public Conversion ClassifyImplicitExtensionMethodThisArgConversion(BoundExpression sourceExpressionOpt, TypeSymbol sourceType, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, bool isMethodGroupConversion) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we update the comment above this method?
@cston for the second review, thanks |
Speclet updates: dotnet/csharplang#8221, dotnet/csharplang#8287
Test plan: #73445