Add more ref readonly tests and address comments#69183
Merged
jjonescz merged 8 commits intodotnet:mainfrom Jul 28, 2023
Merged
Conversation
AlekseyTs
reviewed
Jul 24, 2023
| $"Rely on the {nameof(refKindCompareMode)} flag to set this to ensure all cases are handled."); | ||
| Debug.Assert((_refKindCompareMode & RefKindCompareMode.AllowRefReadonlyVsInMismatch) == 0 || | ||
| (_refKindCompareMode & RefKindCompareMode.ConsiderDifferences) != 0, | ||
| $"Cannot set {nameof(RefKindCompareMode.AllowRefReadonlyVsInMismatch)} without {nameof(RefKindCompareMode.ConsiderDifferences)}."); |
Contributor
There was a problem hiding this comment.
Consider making the assert more general. I.e. either _refKindCompareMode == DoNotConsiderDifferences, or the ConsiderDifferences flag is set. #Closed
AlekseyTs
reviewed
Jul 24, 2023
| } | ||
|
|
||
| [Fact] | ||
| public void ExpressionTrees() |
Contributor
AlekseyTs
reviewed
Jul 24, 2023
| } | ||
|
|
||
| [Fact] | ||
| public void Implementation_RefReadonly_In_Close() |
Contributor
Member
Author
There was a problem hiding this comment.
No, the point is to test MemberSignatureComparer.CSharpCloseImplicitImplementationComparer
Contributor
|
Done with review pass (commit 5) |
Member
Author
|
@jcouv for a second review, thanks |
jcouv
reviewed
Jul 27, 2023
|
|
||
| return true; | ||
|
|
||
| static bool areRefKindsCompatible(RefKindCompareMode refKindCompareMode, RefKind refKind1, RefKind refKind2) |
Member
There was a problem hiding this comment.
Thanks. This was much easier to follow :-)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
modreq(In)emitted for synthesized delegateInvokemethod #69079 (comment)Test plan: #68056