Skip to content

Fix crash lowering property pattern where override lacks a get accessor#56586

Merged
RikkiGibson merged 2 commits intodotnet:mainfrom
RikkiGibson:pattern-override-no-get
Sep 23, 2021
Merged

Fix crash lowering property pattern where override lacks a get accessor#56586
RikkiGibson merged 2 commits intodotnet:mainfrom
RikkiGibson:pattern-override-no-get

Conversation

@RikkiGibson
Copy link
Copy Markdown
Member

@RikkiGibson RikkiGibson commented Sep 21, 2021

Closes #51801.

I added an item to #51289 to ensure we cover an analogous scenario with indexer accesses.

I think this change is analogous to lowering of "conventional" property accesses:

var getMethod = getMethodOpt ?? property.GetOwnOrInheritedGetMethod();

@ghost ghost added the Area-Compilers label Sep 21, 2021
@RikkiGibson RikkiGibson marked this pull request as ready for review September 22, 2021 18:44
@RikkiGibson RikkiGibson requested a review from a team as a code owner September 22, 2021 18:44
@jcouv jcouv self-assigned this Sep 23, 2021
Copy link
Copy Markdown
Member

@jcouv jcouv left a comment

Choose a reason for hiding this comment

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

LGTM Thanks (iteration 2)

@jcouv jcouv requested a review from a team September 23, 2021 17:57
Copy link
Copy Markdown
Contributor

@AlekseyTs AlekseyTs left a comment

Choose a reason for hiding this comment

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

LGTM (commit 2)

@RikkiGibson RikkiGibson merged commit 6a70a46 into dotnet:main Sep 23, 2021
@ghost ghost added this to the Next milestone Sep 23, 2021
@RikkiGibson RikkiGibson deleted the pattern-override-no-get branch September 23, 2021 22:23
@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compiler crash in pattern matching lowering - Error MSB6006: "csc.exe" exited with code -2146232797. (1, 1)

4 participants