Skip to content

Keep extra parens around unit & tuples in arg pats - #17618

Merged
T-Gro merged 2 commits into
dotnet:mainfrom
brianrourkeboll:parens-double
Aug 28, 2024
Merged

Keep extra parens around unit & tuples in arg pats#17618
T-Gro merged 2 commits into
dotnet:mainfrom
brianrourkeboll:parens-double

Conversation

@brianrourkeboll

@brianrourkebollbrianrourkeboll commented Aug 27, 2024

Copy link
Copy Markdown
Contributor

Description

Another followup to #16079, et seq.

There are several scenarios where it is impossible to know whether the parentheses are required, or whether they may affect compilation, by looking only at the syntax. I addressed this for invocations in #17012, but not for definitions.

Checklist

  • Test cases added.
  • Release notes entry updated.

* There are several scenarios where it is impossible to know whether the
parentheses are required, or whethery they may affect compilation, by
looking only at the syntax.
@github-actions

github-actionsBot commented Aug 27, 2024

Copy link
Copy Markdown
Contributor

❗ Release notes required


✅ Found changes and release notes in following paths:

Change pathRelease notes pathDescription
src/Compilerdocs/release-notes/.FSharp.Compiler.Service/9.0.100.md

@brianrourkeboll
brianrourkeboll marked this pull request as ready for review August 27, 2024 18:11
@brianrourkeboll
brianrourkeboll requested a review from a team as a code ownerAugust 27, 2024 18:11

@psfinakipsfinaki left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for polishing this up!

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants

@brianrourkeboll@psfinaki@edgarfgp@T-Gro