Skip to content

Standardize list pattern lowering on Index constructor.#5484

Merged
AlekseyTs merged 2 commits intomainfrom
AlekseyTs-patch-3
Dec 4, 2021
Merged

Standardize list pattern lowering on Index constructor.#5484
AlekseyTs merged 2 commits intomainfrom
AlekseyTs-patch-3

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.

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