aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/SymDenotations.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-02-12 20:46:01 +0100
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-03-18 11:11:05 +0100
commit85e992293e3c48074da0bc0a00b11097d3ac9d25 (patch)
tree5624cb96cab0c3cfe52f5706fb8efe911343f5be /src/dotty/tools/dotc/core/SymDenotations.scala
parent0ed27cc87d1f080836b319f97cbf900c2ba2c234 (diff)
downloaddotty-85e992293e3c48074da0bc0a00b11097d3ac9d25.tar.gz
dotty-85e992293e3c48074da0bc0a00b11097d3ac9d25.tar.bz2
dotty-85e992293e3c48074da0bc0a00b11097d3ac9d25.zip
Make Definitions#rootPackage a root.
Otherwise it is not static, and pickling the symbol leads astray.
Diffstat (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r--src/dotty/tools/dotc/core/SymDenotations.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala
index a55f7775c..8cca897c3 100644
--- a/src/dotty/tools/dotc/core/SymDenotations.scala
+++ b/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -338,7 +338,7 @@ object SymDenotations {
/** Is this symbol the root class or its companion object? */
final def isRoot: Boolean =
- (name.toTermName == nme.ROOT) && (owner eq NoSymbol)
+ (name.toTermName == nme.ROOT || name == nme.ROOTPKG) && (owner eq NoSymbol)
/** Is this symbol the empty package class or its companion object? */
final def isEmptyPackage(implicit ctx: Context): Boolean =