Skip to content

Commit 26b054f

Browse files
smarterallanrenucci
authored andcommitted
Matchers: fix leak of private trait Collected
Collected appears in the signature of public members, therefore it cannot be private. See discussion in scala/scala3#4154
1 parent 171d0e5 commit 26b054f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scalatest/src/main/scala/org/scalatest/Matchers.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3063,7 +3063,7 @@ trait Matchers extends Assertions with Tolerance with ShouldVerb with MatcherWor
30633063

30643064
// This is where InspectorShorthands started
30653065

3066-
private sealed trait Collected extends Product with Serializable
3066+
sealed trait Collected extends Product with Serializable
30673067
private case object AllCollected extends Collected
30683068
private case object EveryCollected extends Collected
30693069
private case class BetweenCollected(from: Int, to: Int) extends Collected

0 commit comments

Comments
 (0)