Support Scala 3-style wildcard type arguments in routes files by jadenPete · Pull Request #13972 · playframework/playframework · GitHub
Skip to content

Support Scala 3-style wildcard type arguments in routes files - #13972

Merged
mkurz merged 1 commit into
playframework:mainfrom
lucidsoftware:jpeterson-add-support-for-wildcard-type-parameters
Jun 3, 2026
Merged

mkurz merged 1 commit into
playframework:mainfrom
lucidsoftware:jpeterson-add-support-for-wildcard-type-parameters

Conversation

@jadenPete

Copy link
Copy Markdown

Fixes

This PR adds support for Scala 3-style wildcard type arguments in routes files. Currently, Play supports the old _ syntax, but it doesn't support the newer ? syntax. This PR fixes that.

Purpose

See above.

Background Context

Without support for the new syntax, there's no way to compile generated router code with Scala 3 and use wildcard type arguments.

References

N/A

@mkurz mkurz 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, thanks

@mkurz
mkurz merged commit 3808558 into playframework:main Jun 3, 2026
43 checks passed
@mkurz

mkurz commented Jun 3, 2026

Copy link
Copy Markdown
Member

@mergify

mergify Bot commented Jun 3, 2026 •

Copy link
Copy Markdown
Contributor

mkurz added a commit that referenced this pull request Jun 3, 2026
[2.9.x] Support Scala 3-style wildcard type arguments in routes files (backport #13972) by @jadenPete
mkurz added a commit that referenced this pull request Jun 3, 2026
[3.0.x] Support Scala 3-style wildcard type arguments in routes files (backport #13972) by @jadenPete
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