Skip to content

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
@lihaoyi lihaoyi mentioned this pull request May 6, 2025
lihaoyi added a commit that referenced this pull request May 6, 2025
Follow up to #4745, but with
Scala 3.7.0-final and without using experimental language features such
as referenceable package objects

Fixes #4733
@lihaoyi
Copy link
Member Author

lihaoyi commented May 6, 2025

Superseded by #5075

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