From 8144ac29420f18fc4a60690ac33d6247cb87a40c Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Tue, 21 Mar 2017 15:17:53 +0100 Subject: Fix @sharable problem --- compiler/src/dotty/tools/dotc/core/Names.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/src/dotty/tools/dotc/core/Names.scala') diff --git a/compiler/src/dotty/tools/dotc/core/Names.scala b/compiler/src/dotty/tools/dotc/core/Names.scala index 74e1fd2d2..3c867c754 100644 --- a/compiler/src/dotty/tools/dotc/core/Names.scala +++ b/compiler/src/dotty/tools/dotc/core/Names.scala @@ -163,7 +163,7 @@ object Names { def info = NameInfo.TermName def underlying: TermName = unsupported("underlying") - private var derivedNames: AnyRef /* SimpleMap | j.u.HashMap */ = + @sharable private var derivedNames: AnyRef /* SimpleMap | j.u.HashMap */ = SimpleMap.Empty[NameInfo] private def getDerived(info: NameInfo): DerivedTermName /* | Null */= derivedNames match { -- cgit v1.2.3