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

Disallow inline array operations in expression trees. #68222

Merged
merged 1 commit into from
May 18, 2023

Conversation

AlekseyTs
Copy link
Contributor

@AlekseyTs AlekseyTs commented May 17, 2023

Relates to test plan #67826

@AlekseyTs AlekseyTs requested review from jjonescz and cston May 17, 2023 13:46
@AlekseyTs AlekseyTs requested a review from a team as a code owner May 17, 2023 13:46
@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Issues and PRs which have not yet been triaged by a lead label May 17, 2023
@AlekseyTs
Copy link
Contributor Author

@cston, @jjonescz, @dotnet/roslyn-compiler Please review.

// () => x[0] = 111;
Diagnostic(ErrorCode.ERR_ExpressionTreeContainsInlineArrayOperation, "x[0]").WithLocation(10, 15)
);
}
Copy link
Member

@jcouv jcouv May 17, 2023

Choose a reason for hiding this comment

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

Are we testing the conversion case? "An expression tree may not contain an inline array [...] conversion"
Never mind, I'd missed the test for that (at the bottom of the file) #Closed

@jcouv jcouv self-assigned this May 17, 2023
Copy link
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 1)

@AlekseyTs
Copy link
Contributor Author

@cston, @jjonescz, @dotnet/roslyn-compiler For the second review.

@AlekseyTs AlekseyTs merged commit d5eb76b into dotnet:features/InlineArrays May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers New Feature - Inline Arrays 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.

3 participants