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

Standardize list pattern lowering on Index constructor. #5484

Merged
merged 2 commits into from
Dec 4, 2021

Conversation

AlekseyTs
Copy link
Contributor

@AlekseyTs AlekseyTs commented Nov 30, 2021

Related to dotnet/roslyn#57825

@AlekseyTs AlekseyTs requested review from 333fred and jcouv November 30, 2021 19:44
@AlekseyTs AlekseyTs requested a review from a team as a code owner November 30, 2021 19:44
Comment on lines -84 to +86
&& expr[0] is 1
&& expr[1] is 2
&& expr[2] is 3
&& expr[new Index(0, fromEnd: false)] is 1
&& expr[new Index(1, fromEnd: false)] is 2
&& expr[new Index(2, fromEnd: false)] is 3
Copy link
Member

Choose a reason for hiding this comment

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

(if compatible via implicit Index support)

This section presents the lowering with implicit indexer (using an int arg)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This section presents the lowering with implicit indexer (using an int arg)

Removed the reference to the implicit indexer there.

proposals/list-patterns.md Outdated Show resolved Hide resolved
AlekseyTs added a commit to dotnet/roslyn that referenced this pull request Dec 4, 2021
@AlekseyTs AlekseyTs merged commit df75a20 into main Dec 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants