KEMBAR78
Disallow inline array operations in expression trees. by AlekseyTs · Pull Request #68222 · dotnet/roslyn · GitHub
Skip to content

Conversation

@AlekseyTs
Copy link
Contributor

@AlekseyTs AlekseyTs commented May 17, 2023

Relates to test plan #67826

@AlekseyTs AlekseyTs requested review from cston and jjonescz May 17, 2023 13:46
@AlekseyTs AlekseyTs requested a review from a team as a code owner May 17, 2023 13:46
@ghost ghost 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 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