Skip to content

Conversation

jakebailey
Copy link
Member

@jakebailey jakebailey commented May 3, 2022

Reopens #16241
Fixes #48733 (by reverting what broke it)

#47550 breaks some code out in the wild that I didn't have tests for, and that's not good unless we explicitly decide to allow/disallow some specific syntax.

It's too close to 4.8's RC, and we haven't the decision as to how we want to solve the ambiguity, i.e. choosing one of the options listed in #48733 (comment).

Just revert my incomplete bugfix for now, with the expectation that this is reapplied with one of the three PRs above.

@jakebailey
Copy link
Member Author

This PR is currently a plain revert, but I'm thinking it would be best to leave the tests in place, and add the tests from the three PRs in #48733 (comment). That way, we lock things in and then can see the diff in a future change.

@jakebailey
Copy link
Member Author

Restored the tests and added the ones from the other PR for #48733.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Milestone Bug PRs that fix a bug with a specific milestone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[4.7-beta] Parsing failure for arrow function expr in conditional expr
4 participants