Skip to content
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

Consider source code as Scala 2 under -Ycompile-scala2-library #22520

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hamzaremmal
Copy link
Member

When compiling under -Ycompile-scala2-library, we should consider the source code as Scala 2. This change will allow using Scala 2's erasure instead of Scala 3's.

Related to #22480

@hamzaremmal
Copy link
Member Author

Note that I haven't enabled scala2-library-tasty tests because we don't set the Scala2Tasty flag. We can rebase this PR and test them when #22519 is merged.

@hamzaremmal
Copy link
Member Author

hamzaremmal commented Feb 4, 2025

CI is failing because of the string interpolators, I forgot that I changed it in 8cb6b70, we should probably use Scala 3's compiletime package instead of Scala 2's macros.

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.

3 participants