Skip to content

Enforce -new-syntax under -language:future #23443

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

Merged
merged 5 commits into from
Jul 15, 2025

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jun 27, 2025

No more Java style conditionals and loops. Always requires then/do.

Also: Enforce latest given syntax, instead of the intermediate one. The two were rolled into one PR because they require changing the same submodules.

odersky added 5 commits June 27, 2025 17:53
No more Java style conditionals and loops. Always requires then/do.
It warned before, but did not error. However, the idea is that under -source future we
should enforce the new rules that we have defined everywhere.
@hamzaremmal hamzaremmal merged commit 001eb6d into scala:main Jul 15, 2025
29 checks passed
@hamzaremmal hamzaremmal deleted the change-future branch July 15, 2025 09:36
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