Skip to content

Conversation

@CyrusNajmabadi
Copy link
Member

Fixes #45919

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner February 14, 2022 21:39
@ghost ghost added the Area-IDE label Feb 14, 2022

Dim typeStatement = typeBlock.BlockStatement
typeDeclaration = typeStatement
typeDeclaration = typeBlock
Copy link
Member Author

Choose a reason for hiding this comment

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

this it the fix. this VB helper doesn't match the rest (like "IsBetweenMembers") and returns teh type statement not the type block.

if (containingType?.TypeKind is not TypeKind.Class and not TypeKind.Struct)
{
return;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

:'(

@CyrusNajmabadi CyrusNajmabadi merged commit a405d25 into dotnet:main Feb 15, 2022
@ghost ghost added this to the Next milestone Feb 15, 2022
@CyrusNajmabadi CyrusNajmabadi deleted the vbGenEquals branch February 18, 2022 20:49
@RikkiGibson RikkiGibson modified the milestones: Next, 17.2.P2 Mar 1, 2022
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.

VB Quick Action, Generate Equal(Object) crashes

4 participants