-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Support consumption of instance compound assignment operators #78087
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
Support consumption of instance compound assignment operators #78087
Conversation
| return null; | ||
| } | ||
|
|
||
| Debug.Assert(!methods.IsEmpty); |
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.
Nit: is this assert actually helping anything? We just checked that.
|
@cston, @dotnet/roslyn-compiler For the second review |
| if (checkedName is not null) | ||
| { | ||
| this.LookupMembersWithFallback(lookupResult, lookupInType, name: checkedName, arity: 0, ref useSiteInfo, basesBeingResolved: null, options: LookupOptions.MustBeInstance | LookupOptions.MustBeOperator); | ||
| ArrayBuilder<MethodSymbol>? LookupUserDefinedInstanceOperators(TypeSymbol lookupInType, string? checkedName, string ordinaryName, int parameterCount, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) |
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.
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.
I will add the modifier in the next PR
2b1abe9
into
dotnet:features/UserDefinedCompoundAssignment
No description provided.