Skip to content

Scala: fix parsing _ when used as lambda syntactic sugar#7395

Merged
greg-at-moderne merged 1 commit intomainfrom
greg-scala-block-idempotency
Apr 16, 2026
Merged

Scala: fix parsing _ when used as lambda syntactic sugar#7395
greg-at-moderne merged 1 commit intomainfrom
greg-scala-block-idempotency

Conversation

@greg-at-moderne
Copy link
Copy Markdown
Contributor

@greg-at-moderne greg-at-moderne commented Apr 16, 2026

What's changed?

Fix Scala parser with regards to using _ as syntactic sugar in lambda expressions - e.g. collection.map(_.toString).

What's your motivation?

It currently fails the idempotency expectation (but I'd guess also other problems).

@greg-at-moderne greg-at-moderne self-assigned this Apr 16, 2026
@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite Apr 16, 2026
@greg-at-moderne greg-at-moderne marked this pull request as ready for review April 16, 2026 16:47
@greg-at-moderne greg-at-moderne merged commit 3227926 into main Apr 16, 2026
1 check passed
@greg-at-moderne greg-at-moderne deleted the greg-scala-block-idempotency branch April 16, 2026 16:47
@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenRewrite Apr 16, 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