diff options
author | Lukas Rytz <lukas.rytz@epfl.ch> | 2009-07-24 14:19:00 +0000 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@epfl.ch> | 2009-07-24 14:19:00 +0000 |
commit | 8a78d3748319811d7b0adc80d4ee8926dc8d90bf (patch) | |
tree | e455824671831487c17c46271bb95a2d51093a70 /src | |
parent | f4301266d3eb395f0aaab3211eaaeaff898f9961 (diff) | |
download | scala-8a78d3748319811d7b0adc80d4ee8926dc8d90bf.tar.gz scala-8a78d3748319811d7b0adc80d4ee8926dc8d90bf.tar.bz2 scala-8a78d3748319811d7b0adc80d4ee8926dc8d90bf.zip |
another attempt at fixing annotations printout
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/TreePrinters.scala | 2 |
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+" ") } |