Skip to content

Fixed incorrect discard suggestion in var pattern#61657

Merged
davidwengier merged 3 commits intodotnet:mainfrom
DoctorKrolic:discard-in-var-pattern
Jun 6, 2022
Merged

Fixed incorrect discard suggestion in var pattern#61657
davidwengier merged 3 commits intodotnet:mainfrom
DoctorKrolic:discard-in-var-pattern

Conversation

@DoctorKrolic
Copy link
Copy Markdown
Contributor

Fixes: #45768

@DoctorKrolic DoctorKrolic requested a review from a team as a code owner June 2, 2022 16:55
@ghost ghost added Community The pull request was submitted by a contributor who is not a Microsoft employee. Area-IDE labels Jun 2, 2022
Copy link
Copy Markdown
Contributor

@sharwell sharwell left a comment

Choose a reason for hiding this comment

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

Requesting two changes:

  1. Fix the trivia when var _ is used
  2. Preserve the use of _ in cases where var _ is unnecessary

@DoctorKrolic DoctorKrolic requested a review from sharwell June 2, 2022 18:10
@DoctorKrolic DoctorKrolic requested a review from davidwengier June 3, 2022 14:55
@davidwengier
Copy link
Copy Markdown
Member

Thanks

@davidwengier davidwengier merged commit 134278c into dotnet:main Jun 6, 2022
@ghost ghost added this to the Next milestone Jun 6, 2022
@DoctorKrolic DoctorKrolic deleted the discard-in-var-pattern branch June 6, 2022 13:37
@sharwell
Copy link
Copy Markdown
Contributor

The CI build after merge is showing an error like this:

Still unable to load MEF component DLL: Could not load file or assembly 'Microsoft.VisualStudio.LanguageServer.Client, Version=17.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

/cc @dibarbet

@RikkiGibson RikkiGibson modified the milestones: Next, 17.3 P3 Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-IDE Community The pull request was submitted by a contributor who is not a Microsoft employee.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect suggestion to use discard pattern breaks compilation

4 participants