aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/core/Names.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2017-04-01 20:14:19 +0200
committerMartin Odersky <odersky@gmail.com>2017-04-11 09:33:12 +0200
commita7ee8dc999f415dbbed9c4e60bf4ade1cf8a94eb (patch)
tree6e5def7d85a4bb2bf1e850481851ceb5acb8c4f7 /compiler/src/dotty/tools/dotc/core/Names.scala
parentbd992dd3158f192fd391605a6b51e1c23e09171d (diff)
downloaddotty-a7ee8dc999f415dbbed9c4e60bf4ade1cf8a94eb.tar.gz
dotty-a7ee8dc999f415dbbed9c4e60bf4ade1cf8a94eb.tar.bz2
dotty-a7ee8dc999f415dbbed9c4e60bf4ade1cf8a94eb.zip
Avoid setter in Name
and fix a bug in TreeUnpickler
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/Names.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/core/Names.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/Names.scala b/compiler/src/dotty/tools/dotc/core/Names.scala
index 6caba33ec..cef55a482 100644
--- a/compiler/src/dotty/tools/dotc/core/Names.scala
+++ b/compiler/src/dotty/tools/dotc/core/Names.scala
@@ -346,7 +346,7 @@ object Names {
def isSimple = false
def asSimpleName = throw new UnsupportedOperationException(s"$debugString is not a simple name")
- private var simpleName: SimpleTermName = null
+ private[this] var simpleName: SimpleTermName = null
def toSimpleName = {
if (simpleName == null) simpleName = termName(toString)
simpleName