Skip to content

Commit e8baa69

Browse files
committed
Drop failing assertion
Cases in a match could be empty in case of errors
1 parent 605d194 commit e8baa69

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,6 @@ object Trees {
506506
/** selector match { cases } */
507507
case class Match[-T >: Untyped] private[ast] (selector: Tree[T], cases: List[CaseDef[T]])(implicit @constructorOnly src: SourceFile)
508508
extends TermTree[T] {
509-
assert(cases.nonEmpty)
510509
type ThisTree[-T >: Untyped] = Match[T]
511510
def isInline = false
512511
}

0 commit comments

Comments
 (0)