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

Warn when @volatile is used on vals #19462

Merged
merged 1 commit into from
Feb 1, 2024
Merged

Conversation

AnotherMedo
Copy link

Fixes #19416

Done on the scala spree of 16.01.2024 with @mbovel

@hamzaremmal
Copy link
Member

The CI fails because of tests/warn/i19416.check. You should regenerate this file using the following command :

testCompilation --update-checkfiles i19416

@@ -0,0 +1,4 @@
-- [E193] Syntax Warning: tests\warn\i19416.scala:2:18 -----------------------------------------------------------------
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CI fails because of the windows style path.

Co-authored-by: Mehdi Alaoui <[email protected]>
Co-authored-by: Matt Bovel <[email protected]>
@hamzaremmal hamzaremmal merged commit a3adc99 into scala:main Feb 1, 2024
17 checks passed
@Kordyjan Kordyjan added this to the 3.4.1 milestone Feb 14, 2024
WojciechMazur added a commit that referenced this pull request Jul 5, 2024
Backports #19462 to the LTS branch.

PR submitted by the release tooling.
[skip ci]
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.

Compiler should not allow to define @volatile val
5 participants