aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/typer/ProtoTypes.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-07-01 18:09:00 +0200
committerMartin Odersky <odersky@gmail.com>2015-07-06 17:46:48 +0200
commit7cdd006e25fecce309c5843721660b1de1827dba (patch)
tree686e97d0c7cc317e12f8f206ce38fa03616aa5c8 /src/dotty/tools/dotc/typer/ProtoTypes.scala
parentb7f1899cb7f0fa31c8dc140706a822b2d9e7346a (diff)
downloaddotty-7cdd006e25fecce309c5843721660b1de1827dba.tar.gz
dotty-7cdd006e25fecce309c5843721660b1de1827dba.tar.bz2
dotty-7cdd006e25fecce309c5843721660b1de1827dba.zip
More @sharable annotations
Also, some code movements in Names to make it more obvious that mutating operations are only called from synchronized blocks.
Diffstat (limited to 'src/dotty/tools/dotc/typer/ProtoTypes.scala')
-rw-r--r--src/dotty/tools/dotc/typer/ProtoTypes.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/ProtoTypes.scala b/src/dotty/tools/dotc/typer/ProtoTypes.scala
index cd33fce30..40e919ee5 100644
--- a/src/dotty/tools/dotc/typer/ProtoTypes.scala
+++ b/src/dotty/tools/dotc/typer/ProtoTypes.scala
@@ -429,7 +429,7 @@ object ProtoTypes {
def apply(tp: Type) = wildApprox(tp, this)
}
- private lazy val dummyTree = untpd.Literal(Constant(null))
+ @sharable private lazy val dummyTree = untpd.Literal(Constant(null))
/** Dummy tree to be used as an argument of a FunProto or ViewProto type */
object dummyTreeOfType {