Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/ast/Trees.scala
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,8 @@ object Trees {
case class Block[-T >: Untyped] private[ast] (stats: List[Tree[T]], expr: Tree[T])
extends Tree[T] {
type ThisTree[-T >: Untyped] = Block[T]
override def isTerm: Boolean = expr.isTerm
override def isType: Boolean = expr.isType
override def isTerm: Boolean = !isType // this will classify empty trees as terms, which is necessary
}

/** if cond then thenp else elsep */
Expand Down