Skip to content

Upgrade to Scala 3.7.0-RC1 #4745

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open

Upgrade to Scala 3.7.0-RC1 #4745

wants to merge 24 commits into from

Conversation

lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Mar 18, 2025

Fixes #4609 and #4733

Apart from just bumping the Scala version, this PR overhauls the Mill codegen to take advantage of scala/improvement-proposals#100. This lets us remove a whole bunch of hacks we were previously using to avoid needing the .package prefix: alias imports, exports, codegen renames, etc. which are now all unnecessary.

All the codegen-related example tests in ./mill 'example.large.multi[_].local.server' pass, so it seems to work. Only hitting some issues with the -experimental flag stopping us from rolling this out more broadly

Upstream issues

This PR is just for early testing, once 3.7.0-final is out we can update the PR target that before merging it

@lihaoyi lihaoyi changed the title Try out Scala 3.7.0-RC1 Upgrade to Scala 3.7.0-RC1 Mar 18, 2025
@lihaoyi
Copy link
Member Author

lihaoyi commented Mar 19, 2025

Basically all tests pass now, so we can count this as done until 3.7.0 final is out

lihaoyi added a commit that referenced this pull request Mar 30, 2025
Small adjustments to bring them into line with vanilla `.scala` file
semantics, and other cleanups, backported from
#4745
lefou pushed a commit to lefou/mill that referenced this pull request Mar 30, 2025
Small adjustments to bring them into line with vanilla `.scala` file
semantics, and other cleanups, backported from
com-lihaoyi#4745
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.

Integrate referenceable package objects in Mill's codegen
1 participant