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

Add tests for pattern brace completion #43522

Merged
merged 1 commit into from
Apr 22, 2020

Conversation

sharwell
Copy link
Member

@sharwell sharwell commented Apr 20, 2020

The feature appears to already work correctly. This pull request adds tests.

Contributes to #42368

@sharwell sharwell requested a review from a team as a code owner April 20, 2020 21:58
{
void M()
{
_ = this is { Name: { Length: (> 3) and () } }
Copy link
Member

Choose a reason for hiding this comment

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

does (< throw anything off due to < being a mismatched brace?

Copy link
Member Author

Choose a reason for hiding this comment

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

It shouldn't because it's a normal binary operator. I need to figure out how to test it though.

Copy link
Member Author

Choose a reason for hiding this comment

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

I wasn't able to make quick sense of this, so I filed #43560 as a follow-up.

@sharwell sharwell merged commit 324e9a7 into dotnet:features/patterns3 Apr 22, 2020
@sharwell sharwell deleted the brace-completion branch April 22, 2020 05:13
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.

2 participants