Skip to content

Commit 343c2d4

Browse files
committed
Make NextOfKin’s constructor private[Tombstone]
This change is required if we want to change the visibility of the synthetic `apply` method in case classes companion to match the visibility of its case class constructor. See also discussion in scala/scala3#5472.
1 parent b846ae5 commit 343c2d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/library/scala/collection/immutable/VectorMap.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ object VectorMap extends MapFactory[VectorMap] {
205205
final case object Kinless extends Tombstone {
206206
override def toString = ""
207207
}
208-
final case class NextOfKin private (distance: Int) extends Tombstone {
208+
final case class NextOfKin private[Tombstone] (distance: Int) extends Tombstone {
209209
override def toString = "" + distance
210210
}
211211
def apply(distance: Int): Tombstone =

0 commit comments

Comments
 (0)