Skip to content
New issue

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

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

Already on GitHub? # 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 <mehdi.alaoui@epfl.ch>
Co-authored-by: Matt Bovel <matthieu@bovel.net>
@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]
# for free to join this conversation on GitHub. Already have an account? # 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