Skip to content

Scala: fix parsing of return types written in parens#7909

Merged
greg-at-moderne merged 1 commit into
mainfrom
greg-scala-parenthesized-return-type
Jun 5, 2026
Merged

Scala: fix parsing of return types written in parens#7909
greg-at-moderne merged 1 commit into
mainfrom
greg-scala-parenthesized-return-type

Conversation

@greg-at-moderne
Copy link
Copy Markdown
Contributor

@greg-at-moderne greg-at-moderne commented Jun 5, 2026

What's changed?

Fix parsing of Scala sources which contain optional parentheses around return type, e.g.

def f(x: Int): (Int => Unit) = { ... }

What's your motivation?

They suffer from idempotency issues.

@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Jun 5, 2026
@greg-at-moderne greg-at-moderne marked this pull request as ready for review June 5, 2026 10:46
@greg-at-moderne greg-at-moderne merged commit a885655 into main Jun 5, 2026
1 check passed
@greg-at-moderne greg-at-moderne deleted the greg-scala-parenthesized-return-type branch June 5, 2026 10:46
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant