diff options
author | Lex Spoon <lex@lexspoon.org> | 2007-06-20 22:17:50 +0000 |
---|---|---|
committer | Lex Spoon <lex@lexspoon.org> | 2007-06-20 22:17:50 +0000 |
commit | 7329219d88b7ef4a93244c85dcc8136bec8befae (patch) | |
tree | 029ee6865f7678ffb25992680a95c561e513ecfb | |
parent | b0da26356e84bb318255c3d6f2e09b6a7b6bd8e3 (diff) | |
download | scala-7329219d88b7ef4a93244c85dcc8136bec8befae.tar.gz scala-7329219d88b7ef4a93244c85dcc8136bec8befae.tar.bz2 scala-7329219d88b7ef4a93244c85dcc8136bec8befae.zip |
overrode Annotated.isTree in the same
way as the existing Annotated.isType
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/Trees.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/Trees.scala b/src/compiler/scala/tools/nsc/ast/Trees.scala index 6de292b7ed..1edcef5e5b 100644 --- a/src/compiler/scala/tools/nsc/ast/Trees.scala +++ b/src/compiler/scala/tools/nsc/ast/Trees.scala @@ -705,9 +705,10 @@ trait Trees { def TypeTree(tp: Type): TypeTree = TypeTree() setType tp // def TypeTree(tp: Type, tree : Tree): TypeTree = TypeTree(tree) setType tp - /** A tree that has anP attribute attached to it */ + /** A tree that has an attribute attached to it */ case class Annotated(annot: Annotation, arg: Tree) extends Tree { override def isType = arg.isType + override def isTerm = arg.isTerm } /** Singleton type, eliminated by RefCheck */ |