Skip to content

Commit 1c0c9e9

Browse files
committed
If a pattern is missing print the extractors needed
1 parent 894615a commit 1c0c9e9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/src/scala/tasty/util/ShowSourceCode.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,9 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
530530
this += "_: "
531531
printTypeOrBoundsTree(tpt)
532532

533+
case _ =>
534+
throw new MatchError(pattern.show)
535+
533536
}
534537

535538
def printConstant(const: Constant): Buffer = const match {

0 commit comments

Comments
 (0)