File tree 2 files changed +5
-4
lines changed
scala2-library-cc/src/scala/collection/generic
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1066,6 +1066,7 @@ object Build {
1066
1066
Compile / doc / scalacOptions += " -Ydocument-synthetic-types" ,
1067
1067
scalacOptions += " -Ycompile-scala2-library" ,
1068
1068
scalacOptions += " -Yscala2Unpickler:never" ,
1069
+ scalacOptions += " -Yno-experimental" ,
1069
1070
scalacOptions -= " -Xfatal-warnings" ,
1070
1071
Compile / compile / logLevel := Level .Error ,
1071
1072
ivyConfigurations += SourceDeps .hide,
Original file line number Diff line number Diff line change @@ -58,17 +58,17 @@ object IsSeq {
58
58
* The helper method [[seqViewIsSeq_ ]] is added to make the binary compatible.
59
59
*/
60
60
@ annotation.targetName(" seqViewIsSeq" )
61
- @ annotation.publicInBinary
62
- private [ IsSeq ] def seqViewIsSeq_ [CC0 [X ] <: SeqView [X ], A0 ]: IsSeq [CC0 [A0 ]] { type A = A0 ; type C = View [A0 ] } = ???
61
+ // @annotation.publicInBinary private[IsSeq] // FIXME: enable when publicInBinary becomes stable
62
+ def seqViewIsSeq_ [CC0 [X ] <: SeqView [X ], A0 ]: IsSeq [CC0 [A0 ]] { type A = A0 ; type C = View [A0 ] } = ???
63
63
implicit inline def seqViewIsSeq [CC0 [X ] <: SeqView [X ], A0 ]: IsIterable [CC0 [A0 ]] { type A = A0 ; type C = View [A0 ] } = seqViewIsSeq_[CC0 , A0 ].asInstanceOf
64
64
65
65
/** !!! Under cc, views are not Seqs and can't use SeqOps.
66
66
* Therefore, [[stringViewIsSeq ]] now returns an [[IsIterable ]].
67
67
* The helper method [[stringViewIsSeq__ ]] is added to make the binary compatible.
68
68
*/
69
69
@ annotation.targetName(" stringViewIsSeq" )
70
- @ annotation.publicInBinary
71
- private [ IsSeq ] val stringViewIsSeq_ : IsSeq [StringView ] { type A = Char ; type C = View [Char ] } = ???
70
+ // @annotation.publicInBinary private[IsSeq] // FIXME: enable when publicInBinary becomes stable
71
+ val stringViewIsSeq_ : IsSeq [StringView ] { type A = Char ; type C = View [Char ] } = ???
72
72
inline implicit def stringViewIsSeq : IsIterable [StringView ] { type A = Char ; type C = View [Char ] } = stringViewIsSeq_.asInstanceOf
73
73
74
74
implicit val stringIsSeq : IsSeq [String ] { type A = Char ; type C = String } =
You can’t perform that action at this time.
0 commit comments