Skip to content

Commit 76ed7eb

Browse files
committed
Apply suggestion from Nico
1 parent 25035d7 commit 76ed7eb

File tree

1 file changed

+4
-2
lines changed
  • scala2-library-cc/src/scala/collection/generic

1 file changed

+4
-2
lines changed

scala2-library-cc/src/scala/collection/generic/IsSeq.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,17 @@ object IsSeq {
5858
* The helper method [[seqViewIsSeq_]] is added to make the binary compatible.
5959
*/
6060
@annotation.targetName("seqViewIsSeq")
61-
def seqViewIsSeq_[CC0[X] <: SeqView[X], A0]: IsSeq[CC0[A0]] { type A = A0; type C = View[A0] } = ???
61+
@annotation.publicInBinary
62+
private[IsSeq] def seqViewIsSeq_[CC0[X] <: SeqView[X], A0]: IsSeq[CC0[A0]] { type A = A0; type C = View[A0] } = ???
6263
implicit inline def seqViewIsSeq[CC0[X] <: SeqView[X], A0]: IsIterable[CC0[A0]] { type A = A0; type C = View[A0] } = seqViewIsSeq_[CC0, A0].asInstanceOf
6364

6465
/** !!! Under cc, views are not Seqs and can't use SeqOps.
6566
* Therefore, [[stringViewIsSeq]] now returns an [[IsIterable]].
6667
* The helper method [[stringViewIsSeq__]] is added to make the binary compatible.
6768
*/
6869
@annotation.targetName("stringViewIsSeq")
69-
val stringViewIsSeq_ : IsSeq[StringView] { type A = Char; type C = View[Char] } = ???
70+
@annotation.publicInBinary
71+
private[IsSeq] val stringViewIsSeq_ : IsSeq[StringView] { type A = Char; type C = View[Char] } = ???
7072
inline implicit def stringViewIsSeq: IsIterable[StringView] { type A = Char; type C = View[Char] } = stringViewIsSeq_.asInstanceOf
7173

7274
implicit val stringIsSeq: IsSeq[String] { type A = Char; type C = String } =

0 commit comments

Comments
 (0)