summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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+" ") }