Skip to content

Commit 6fcb8b8

Browse files
authored
Merge pull request #5329 from dotty-staging/fix-ift-build
Fix build breakage
2 parents 981bdfd + 76e8e83 commit 6fcb8b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/ast/Trees.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,8 +486,8 @@ object Trees {
486486
case class Block[-T >: Untyped] private[ast] (stats: List[Tree[T]], expr: Tree[T])
487487
extends Tree[T] {
488488
type ThisTree[-T >: Untyped] = Block[T]
489-
override def isTerm: Boolean = expr.isTerm
490489
override def isType: Boolean = expr.isType
490+
override def isTerm: Boolean = !isType // this will classify empty trees as terms, which is necessary
491491
}
492492

493493
/** if cond then thenp else elsep */

0 commit comments

Comments
 (0)