-
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
Ensure lvalue struct receivers are not copied by value by implicit Range indexer rewrite #65805
Conversation
… indexer rewrite Fixes dotnet#65586.
@dotnet/roslyn-compiler Please review |
@dotnet/roslyn-compiler For the second review. |
1 similar comment
@dotnet/roslyn-compiler For the second review. |
@dotnet/roslyn-compiler For the second review. |
IL_0026: pop | ||
IL_0027: ret | ||
} | ||
"); |
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 include VerifyIL("Shift2<T>", ...);
as well here, and in GenericTypeParameterAsReceiver_ImpicitRangeIndexer_RangeExpression_Struct_Ref
? #Resolved
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 include
VerifyIL("Shift2<T>", ...);
as well here, and in ...
That method is the same as in the "Class" flavor of the test and its IL is verified there.
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.
Here we only need to verify its runtime behavior with an input which is a struct
Fixes #65586.
Related to #63221.