Skip to content

Revert to Scala 2 rules for handling opening brace on next line #16767

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

Closed
wants to merge 2 commits into from

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jan 25, 2023

Fixes #16760

When there is an unexpected application, we had the function part
as position. This can be very misleading in the case of multi-line
curried functions, where we would see an arror pointing to the previous function
that complained that the function does not take parameters.

We now change that to report the _end_ of the previous function as error position.
@odersky
Copy link
Contributor Author

odersky commented Apr 19, 2023

Closing since there is no consensus that we should change this.

@odersky odersky closed this Apr 19, 2023
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 regression of new-line braced block argument
1 participant