Skip to content

Don't assume leading infix if next line is indented less #12400

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
May 10, 2021

Conversation

odersky
Copy link
Contributor

@odersky odersky commented May 10, 2021

Don't assume that an operator op is a leading infix operator if
op appears on its own line, and next line is indented less.

Fixes #12395

Don't assume that an operator `op` is a leading infix operator if
`op` appears on its own line, and next line is indented less.

Fixes scala#12395
@odersky odersky requested a review from soronpo May 10, 2021 10:13
Copy link
Contributor

@soronpo soronpo left a comment

Choose a reason for hiding this comment

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

LGTM!

@liufengyun liufengyun merged commit 319aef6 into scala:master May 10, 2021
@liufengyun liufengyun deleted the fix-12395 branch May 10, 2021 13:33
@Kordyjan Kordyjan added this to the 3.0.1 milestone Aug 2, 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.

False postfix error from parser
4 participants