Skip to content

Scala: add support for non-standard space around method return type#7646

Merged
greg-at-moderne merged 1 commit into
mainfrom
greg-scala-def-colon-whitespace
May 11, 2026
Merged

Scala: add support for non-standard space around method return type#7646
greg-at-moderne merged 1 commit into
mainfrom
greg-scala-def-colon-whitespace

Conversation

@greg-at-moderne
Copy link
Copy Markdown
Contributor

@greg-at-moderne greg-at-moderne commented May 11, 2026

What's changed?

Fix Scala parser/printer for non-standard whitespace around method's return type, e.g. def foo : Int = 5. Notice the extra space after colon.

What's your motivation?

It suffers from idempotency issues.

@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite May 11, 2026
@greg-at-moderne greg-at-moderne marked this pull request as ready for review May 11, 2026 12:25
@greg-at-moderne greg-at-moderne merged commit 5f6b0cb into main May 11, 2026
1 check passed
@greg-at-moderne greg-at-moderne deleted the greg-scala-def-colon-whitespace branch May 11, 2026 12:25
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite May 11, 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