aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-03-07 17:30:04 +0100
committerMartin Odersky <odersky@gmail.com>2016-03-12 16:08:38 +0100
commita378a46f285dd904a5ba5d2b57a5a8c2cdd7b056 (patch)
treef20cda20ccfc19bd8f5b20f50049862d42b7ac0a /src
parentdbc06d9e0d1532754f8bcb9dba9bf6aac42a9b69 (diff)
downloaddotty-a378a46f285dd904a5ba5d2b57a5a8c2cdd7b056.tar.gz
dotty-a378a46f285dd904a5ba5d2b57a5a8c2cdd7b056.tar.bz2
dotty-a378a46f285dd904a5ba5d2b57a5a8c2cdd7b056.zip
Disable volatile interpretation of lazy vals under -language:Scala2
Revert this commit once #1149 is fixed.
Diffstat (limited to 'src')
-rw-r--r--src/dotty/tools/dotc/transform/LazyVals.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/transform/LazyVals.scala b/src/dotty/tools/dotc/transform/LazyVals.scala
index 88d55c576..ed5c23f8c 100644
--- a/src/dotty/tools/dotc/transform/LazyVals.scala
+++ b/src/dotty/tools/dotc/transform/LazyVals.scala
@@ -74,7 +74,7 @@ class LazyVals extends MiniPhaseTransform with IdentityDenotTransformer with Nee
ctx.scala2Mode && {
if (ctx.settings.rewrite.value.isDefined)
patch(ctx.compilationUnit.source, Position(toUntyped(tree).envelope.start), "@volatile ")
- true // cannot assume volatile because of problems with compilestdlib. See #1149
+ false // cannot assume volatile because of problems with compilestdlib. See #1149
} ||
(sym.is(Flags.Module) && !sym.is(Flags.Synthetic)))
// module class is user-defined.