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

Parens: only disallow removal from first expr in sequential expr when second on same line #16285

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

brianrourkeboll
Copy link
Contributor

Addresses an unforeseen interaction between #16262 and #16248.

4c36a98 from #16262 caused the test case in #16248 (comment) to hit this:

| SynExpr.Sequential(expr1 = SynExpr.Paren(expr = Is inner)), Dangling.Problematic _ -> ValueNone

That should really only be if expr1 and expr2 are on the same line.

Copy link
Member

@psfinaki psfinaki left a comment

Choose a reason for hiding this comment

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

Thanks for such a quick fix, awesome!

@psfinaki psfinaki merged commit cc90116 into dotnet:main Nov 15, 2023
24 checks passed
@brianrourkeboll brianrourkeboll deleted the parens-sequential-multiline branch November 15, 2023 18:31
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.

3 participants