aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/SymDenotations.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-02-25 13:23:41 +0100
committerMartin Odersky <odersky@gmail.com>2013-02-25 13:23:41 +0100
commitd29cc7978daa49f68d14eba35af20fbb8dd423c1 (patch)
treee72de5be3b64d8744ddf101676c8943180faaae3 /src/dotty/tools/dotc/core/SymDenotations.scala
parent94e2c9413def4c6545cfe38ed7b8a5b44bdd6456 (diff)
downloaddotty-d29cc7978daa49f68d14eba35af20fbb8dd423c1.tar.gz
dotty-d29cc7978daa49f68d14eba35af20fbb8dd423c1.tar.bz2
dotty-d29cc7978daa49f68d14eba35af20fbb8dd423c1.zip
Fleshing out some ???'s
Diffstat (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r--src/dotty/tools/dotc/core/SymDenotations.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala
index a7ee385d0..67a1e1d03 100644
--- a/src/dotty/tools/dotc/core/SymDenotations.scala
+++ b/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -883,6 +883,10 @@ object SymDenotations {
val from = denot.moduleClass.denot.asClass
denot.setFlag(from.flags.toTermFlags & RetainedModuleValFlags)
denot.annotations = from.annotations filter (_.appliesToModule)
+ // !!! ^^^ needs to be revised later. The problem is that annotations might
+ // only apply to the module but not to the module class. The right solution
+ // is to have the module class completer set the annotations of both the
+ // class and the module.
denot.info = mclass.symbolicRef
denot.privateWithin = from.privateWithin
}