Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Commit d27e5f0

Browse files
committed
Remove self type from object
1 parent fb94213 commit d27e5f0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

collections/src/main/scala/strawman/collection/immutable/ImmutableArray.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ sealed abstract class ImmutableArray[+A]
125125
* @define coll immutable array
126126
* @define Coll `ImmutableArray`
127127
*/
128-
object ImmutableArray extends StrictOptimizedClassTagSeqFactory[ImmutableArray] { self =>
129-
val untagged: SeqFactory[ImmutableArray] = new ClassTagSeqFactory.AnySeqDelegate(self)
128+
object ImmutableArray extends StrictOptimizedClassTagSeqFactory[ImmutableArray] {
129+
val untagged: SeqFactory[ImmutableArray] = new ClassTagSeqFactory.AnySeqDelegate(this)
130130

131131
private[this] lazy val emptyImpl = new ImmutableArray.ofRef[Nothing](new Array[Nothing](0))
132132

collections/src/main/scala/strawman/collection/mutable/UnrolledBuffer.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,9 @@ sealed class UnrolledBuffer[T](implicit val tag: ClassTag[T])
229229
}
230230

231231

232-
object UnrolledBuffer extends StrictOptimizedClassTagSeqFactory[UnrolledBuffer] { self =>
232+
object UnrolledBuffer extends StrictOptimizedClassTagSeqFactory[UnrolledBuffer] {
233233

234-
val untagged: SeqFactory[UnrolledBuffer] = new ClassTagSeqFactory.AnySeqDelegate(self)
234+
val untagged: SeqFactory[UnrolledBuffer] = new ClassTagSeqFactory.AnySeqDelegate(this)
235235

236236
def empty[A : ClassTag]: UnrolledBuffer[A] = new UnrolledBuffer[A]
237237

collections/src/main/scala/strawman/collection/mutable/WrappedArray.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ abstract class WrappedArray[T]
7878

7979
/** A companion object used to create instances of `WrappedArray`.
8080
*/
81-
object WrappedArray extends StrictOptimizedClassTagSeqFactory[WrappedArray] { self =>
82-
val untagged: SeqFactory[WrappedArray] = new ClassTagSeqFactory.AnySeqDelegate(self)
81+
object WrappedArray extends StrictOptimizedClassTagSeqFactory[WrappedArray] {
82+
val untagged: SeqFactory[WrappedArray] = new ClassTagSeqFactory.AnySeqDelegate(this)
8383

8484
// This is reused for all calls to empty.
8585
private val EmptyWrappedArray = new ofRef[AnyRef](new Array[AnyRef](0))

0 commit comments

Comments
 (0)