summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Namers.scala
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@epfl.ch>2009-06-10 15:27:45 +0000
committerLukas Rytz <lukas.rytz@epfl.ch>2009-06-10 15:27:45 +0000
commit771451984aa25e8f81faac0f58d9001f68928713 (patch)
treebcad313c0f3a4af199e93c3008fc8196cb8c9511 /src/compiler/scala/tools/nsc/typechecker/Namers.scala
parent1164ab879a679085662db70a1f6ecdf035a196ef (diff)
downloadscala-771451984aa25e8f81faac0f58d9001f68928713.tar.gz
scala-771451984aa25e8f81faac0f58d9001f68928713.tar.bz2
scala-771451984aa25e8f81faac0f58d9001f68928713.zip
minor annotations cleanup
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Namers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Namers.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Namers.scala b/src/compiler/scala/tools/nsc/typechecker/Namers.scala
index 477c69cad2..626dbe00bd 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Namers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Namers.scala
@@ -1054,6 +1054,11 @@ trait Namers { self: Analyzer =>
val sym: Symbol = tree.symbol
// For definitions, transform Annotation trees to AnnotationInfos, assign
// them to the sym's annotations. Type annotations: see Typer.typedAnnotated
+
+ // We have to parse definition annotatinos here (not in the typer when traversing
+ // the MemberDef tree): the typer looks at annotations of certain symbols; if
+ // they were added only in typer, depending on the compilation order, they would
+ // be visible or not
val annotated = if (sym.isModule) sym.moduleClass else sym
if (annotated.annotations.isEmpty) tree match {
case defn: MemberDef =>