diff options
author | Martin Odersky <odersky@gmail.com> | 2014-12-15 17:47:41 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-12-15 18:08:32 +0100 |
commit | 4494c16758836296bdcc6567b3042ae3d3d02857 (patch) | |
tree | 040d82d9fee7b726c2708cdd47b9fea660f5e6af /src/dotty/tools/dotc/ast/Trees.scala | |
parent | 21fa5dd1a47727c977848163e2610be745951dbc (diff) | |
download | dotty-4494c16758836296bdcc6567b3042ae3d3d02857.tar.gz dotty-4494c16758836296bdcc6567b3042ae3d3d02857.tar.bz2 dotty-4494c16758836296bdcc6567b3042ae3d3d02857.zip |
Make Bind nodes type trees depending on bound name.
Bind nodes were always TermTrees, which is wrong.
Diffstat (limited to 'src/dotty/tools/dotc/ast/Trees.scala')
-rw-r--r-- | src/dotty/tools/dotc/ast/Trees.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/ast/Trees.scala b/src/dotty/tools/dotc/ast/Trees.scala index 002287076..07f8b5525 100644 --- a/src/dotty/tools/dotc/ast/Trees.scala +++ b/src/dotty/tools/dotc/ast/Trees.scala @@ -594,6 +594,8 @@ object Trees { case class Bind[-T >: Untyped] private[ast] (name: Name, body: Tree[T]) extends NameTree[T] with DefTree[T] with PatternTree[T] { type ThisTree[-T >: Untyped] = Bind[T] + override def isType = name.isTypeName + override def isTerm = name.isTermName override def envelope: Position = pos union initialPos } |