summaryrefslogtreecommitdiff
path: root/src/compiler/scala
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@epfl.ch>2009-07-24 14:19:00 +0000
committerLukas Rytz <lukas.rytz@epfl.ch>2009-07-24 14:19:00 +0000
commit8a78d3748319811d7b0adc80d4ee8926dc8d90bf (patch)
treee455824671831487c17c46271bb95a2d51093a70 /src/compiler/scala
parentf4301266d3eb395f0aaab3211eaaeaff898f9961 (diff)
downloadscala-8a78d3748319811d7b0adc80d4ee8926dc8d90bf.tar.gz
scala-8a78d3748319811d7b0adc80d4ee8926dc8d90bf.tar.bz2
scala-8a78d3748319811d7b0adc80d4ee8926dc8d90bf.zip
another attempt at fixing annotations printout
Diffstat (limited to 'src/compiler/scala')
-rw-r--r--src/compiler/scala/tools/nsc/ast/TreePrinters.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/TreePrinters.scala b/src/compiler/scala/tools/nsc/ast/TreePrinters.scala
index 76837cf071..43ecc7b9f1 100644
--- a/src/compiler/scala/tools/nsc/ast/TreePrinters.scala
+++ b/src/compiler/scala/tools/nsc/ast/TreePrinters.scala
@@ -119,7 +119,7 @@ abstract class TreePrinters {
}
def printAnnotations(tree: Tree) {
- if (tree.tpe != null) {
+ if (!tree.symbol.rawAnnotations.isEmpty) {
val annots = tree.symbol.annotations
if (!annots.isEmpty) {
annots foreach { annot => print("@"+annot+" ") }