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

Params Collections: Implement language version check. #71228

Merged

Conversation

AlekseyTs
Copy link
Contributor

No description provided.

@AlekseyTs AlekseyTs requested a review from a team as a code owner December 12, 2023 15:12
@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Issues and PRs which have not yet been triaged by a lead label Dec 12, 2023
@AlekseyTs
Copy link
Contributor Author

@RikkiGibson, @333fred, @dotnet/roslyn-compiler Please review. This is a fairly small change

var src1 = @"
public class Params
{
static public void Test1(params System.ReadOnlySpan<long> a) {}
Copy link
Member

@333fred 333fred Dec 12, 2023

Choose a reason for hiding this comment

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

Do we carry params-ness through to delegate natural types? Consider adding some variants of this test for delegate conversions as well, even if we don't, just to verify that behavior. #Resolved

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do we carry params-ness through to delegate natural types?

At the moment this is done only for arrays. Expanding the behavior to other types is on my list to do.

Consider adding some variants of this test for delegate conversions as well,

I prefer to do that once "carry-over" part is implemented. But this is definitely a good scenario to cover.

Copy link
Member

Choose a reason for hiding this comment

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

At the moment this is done only for arrays. Expanding the behavior to other types is on my list to do.

Gotcha, thanks.

@AlekseyTs
Copy link
Contributor Author

@RikkiGibson, @dotnet/roslyn-compiler For the second review. This is a fairly small change

@AlekseyTs AlekseyTs merged commit 60a4581 into dotnet:features/ParamsCollections Dec 13, 2023
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers New Feature - ParamsCollections 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