Skip to content
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

Fix UseAutoProperty for record structs #56474

Merged
merged 1 commit into from
Sep 17, 2021
Merged

Fix UseAutoProperty for record structs #56474

merged 1 commit into from
Sep 17, 2021

Conversation

jcouv
Copy link
Member

@jcouv jcouv commented Sep 17, 2021

Addresses last follow-up item from #53631

Comment on lines 53 to +56
else if (member.IsKind(SyntaxKind.ClassDeclaration, out TypeDeclarationSyntax? typeDeclaration) ||
member.IsKind(SyntaxKind.StructDeclaration, out typeDeclaration) ||
member.IsKind(SyntaxKind.RecordDeclaration, out typeDeclaration))
member.IsKind(SyntaxKind.RecordDeclaration, out typeDeclaration) ||
member.IsKind(SyntaxKind.RecordStructDeclaration, out typeDeclaration))
Copy link
Member

Choose a reason for hiding this comment

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

else if (member is TypeDeclarationSyntax typeDeclaration)

Copy link
Member

Choose a reason for hiding this comment

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

ah, n/m. you're not checking interfaces.

@jcouv jcouv marked this pull request as ready for review September 17, 2021 17:13
@jcouv jcouv merged commit 4b06ee4 into dotnet:main Sep 17, 2021
@ghost ghost added this to the Next milestone Sep 17, 2021
@jcouv jcouv deleted the autoprop-rs branch September 17, 2021 17:13
@Cosifne Cosifne modified the milestones: Next, 17.0.P5 Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants