Skip to content

chore: Rewrite to scala3 syntax#165

Merged
He-Pin merged 1 commit into
mainfrom
scala3-syntax
Jun 14, 2026
Merged

chore: Rewrite to scala3 syntax#165
He-Pin merged 1 commit into
mainfrom
scala3-syntax

Conversation

@He-Pin

@He-Pin He-Pin commented Jun 14, 2026

Copy link
Copy Markdown
Member

Motivation

Let Scala 3 Community build compile pekko-samples.

Modification

Update .scalafmt.conf dialect to scala213source3 and enable Scala 3 syntax rewrite rules (rewrite.scala3.convertToNewSyntax), then reformat all sources. Key changes:

  • Wildcard type _? (e.g. Class[_]Class[?])

Result

Code is compatible with Scala 3 compiler when built with the community build.

Tests

Not run - formatting only

References

Refs apache/pekko#3048

Motivation:
Let Scala 3 Community build compile pekko-samples.

Modification:
Update .scalafmt.conf dialect to scala213source3 and enable
scala3 syntax rewrite rules, then reformat all sources.

Result:
Wildcard types use ? syntax (e.g. Class[?] instead of Class[_]).

Tests:
Not run - formatting only

References:
Refs apache/pekko#3048

@pjfanning pjfanning left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@He-Pin He-Pin merged commit 3fb7983 into main Jun 14, 2026
2 checks passed
@He-Pin He-Pin deleted the scala3-syntax branch June 14, 2026 12:43
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.

2 participants