Skip to content

Prohibit pipe & arrow function combination that leads to confusing parse trees #19533

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

iluuu1994
Copy link
Member

@Crell Please verify.

#1 {main}

#0 %s(%d): {closure:%s:%d}(1)
#1 {main}
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't quite know how to read the closure reference properly. Does the (1) in the second one indicate a nesting problem?

Copy link
Member Author

@iluuu1994 iluuu1994 Aug 20, 2025

Choose a reason for hiding this comment

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

1 is a parameter, because print evaluates to 1. https://3v4l.org/0RcBb

@iluuu1994 iluuu1994 requested a review from derickr August 21, 2025 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants