Skip to content

Commit 6507d25

Browse files
committed
If a pattern is missing print the extractors needed
1 parent 38e0989 commit 6507d25

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
@@ -533,6 +533,9 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
533533
this += "_: "
534534
printTypeOrBoundsTree(tpt)
535535

536+
case _ =>
537+
throw new MatchError(pattern.show)
538+
536539
}
537540

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

0 commit comments

Comments
 (0)