Skip to content

Commit b23f788

Browse files
committed
Disable volatile interpretation of lazy vals under -language:Scala2
Revert this commit once #1149 is fixed.
1 parent e799ba9 commit b23f788

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/transform/LazyVals.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class LazyVals extends MiniPhaseTransform with IdentityDenotTransformer with Nee
7373
ctx.scala2Mode && {
7474
if (ctx.settings.rewrite.value.isDefined)
7575
patch(ctx.compilationUnit.source, Position(toUntyped(tree).envelope.start), "@volatile ")
76-
true // cannot assume volatile because of problems with compilestdlib. See #1149
76+
false // cannot assume volatile because of problems with compilestdlib. See #1149
7777
} ||
7878
(sym.is(Flags.Module) && !sym.is(Flags.Synthetic)))
7979
// module class is user-defined.

0 commit comments

Comments
 (0)