Skip to content

Recommend this after ref readonly#69255

Merged
jjonescz merged 2 commits intodotnet:mainfrom
jjonescz:RefReadonly-22-ThisRecommender
Jul 27, 2023
Merged

Recommend this after ref readonly#69255
jjonescz merged 2 commits intodotnet:mainfrom
jjonescz:RefReadonly-22-ThisRecommender

Conversation

@jjonescz
Copy link
Copy Markdown
Member

@jjonescz jjonescz commented Jul 27, 2023

Test plan: #68056

@ghost ghost added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Jul 27, 2023
@jjonescz jjonescz added the Feature - Ref Readonly Parameters `ref readonly` parameters label Jul 27, 2023
@jjonescz jjonescz marked this pull request as ready for review July 27, 2023 11:39
@jjonescz jjonescz requested a review from a team as a code owner July 27, 2023 11:39
@jjonescz jjonescz requested review from akhera99 and jcouv July 27, 2023 13:37
await VerifyAbsenceAsync(
@"class C {
void Goo(in $$");
void Goo(" + modifier + @" $$");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use interpolated strings

Copy link
Copy Markdown
Contributor

@CyrusNajmabadi CyrusNajmabadi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm with test update.

public async Task TestNotAfterIn([CombinatorialValues("in", "ref readonly")] string modifier)
{
await VerifyAbsenceAsync(
@"class C {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for updating to raw strings :)

@jjonescz jjonescz merged commit 319059b into dotnet:main Jul 27, 2023
@jjonescz jjonescz deleted the RefReadonly-22-ThisRecommender branch July 27, 2023 18:21
@ghost ghost added this to the Next milestone Jul 27, 2023
@dibarbet dibarbet modified the milestones: Next, 17.8 P2 Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-IDE Feature - Ref Readonly Parameters `ref readonly` parameters untriaged Issues and PRs which have not yet been triaged by a lead

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants