Skip to content

Print parens for single method argument only if a direct tuple type #21510

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

Merged
merged 1 commit into from
Feb 21, 2025

Conversation

wjoel
Copy link
Contributor

@wjoel wjoel commented Aug 29, 2024

A type alias of a tuple type should be printed without parenthesis.

Closes scalameta/metals#6613

A type alias of a tuple type should be printed without parenthesis.
Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

LGTM! Sorry I missed that!

@tgodzik tgodzik merged commit c533443 into scala:main Feb 21, 2025
28 checks passed
@wjoel wjoel deleted the no-parens-tuple-alias branch February 21, 2025 20:03
@WojciechMazur WojciechMazur added this to the 3.7.0 milestone Mar 11, 2025
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.

Scala 3: Completions, HOFs and aliased tuple types
3 participants