Skip to content

Commit

Permalink
Document why Trees#SelectFromTypeTree cannot be a TypTree
Browse files Browse the repository at this point in the history
  • Loading branch information
smarter committed May 28, 2016
1 parent e5ce083 commit bcdddd9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/dotty/tools/dotc/ast/Trees.scala
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,10 @@ object Trees {
type ThisTree[-T >: Untyped] = SingletonTypeTree[T]
}

/** qualifier # name */
/** qualifier # name
* In Scala, this always refers to a type, but in a Java
* compilation unit this might refer to a term.
*/
case class SelectFromTypeTree[-T >: Untyped] private[ast] (qualifier: Tree[T], name: Name)
extends RefTree[T] {
type ThisTree[-T >: Untyped] = SelectFromTypeTree[T]
Expand Down

0 comments on commit bcdddd9

Please sign in to comment.