Skip to content

Commit b12fbcc

Browse files
authored
Merge pull request scala/scala#6985 from dotty-staging/dotty-4770
Remove some abstract overrides
2 parents 072d74a + f47f3b2 commit b12fbcc

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

library/src/scala/collection/Seq.scala

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,6 @@ trait SeqOps[+A, +CC[_], +C] extends Any
8383
/** The length (number of elements) of the $coll. `size` is an alias for `length` in `Seq` collections. */
8484
def length: Int
8585

86-
/**
87-
* @return This collection as a `Seq[A]`. This is equivalent to `to(Seq)` but might be faster.
88-
*/
89-
def toSeq: immutable.Seq[A]
90-
9186
/** A copy of the $coll with an element prepended.
9287
*
9388
* Also, the original $coll is not modified, so you will want to capture the result.

library/src/scala/reflect/ClassManifestDeprecatedApis.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,6 @@ trait ClassManifestDeprecatedApis[T] extends OptManifest[T] {
9494
def arrayManifest: ClassManifest[Array[T]] =
9595
ClassManifest.classType[Array[T]](arrayClass[T](runtimeClass), this)
9696

97-
override def newArray(len: Int): Array[T] =
98-
java.lang.reflect.Array.newInstance(runtimeClass, len).asInstanceOf[Array[T]]
99-
10097
@deprecated("use wrap.newArray instead", "2.10.0")
10198
def newArray2(len: Int): Array[Array[T]] =
10299
java.lang.reflect.Array.newInstance(arrayClass[T](runtimeClass), len)

library/src/scala/reflect/ClassTag.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ trait ClassTag[T] extends ClassManifestDeprecatedApis[T] with Equals with Serial
4646
def wrap: ClassTag[Array[T]] = ClassTag[Array[T]](arrayClass(runtimeClass))
4747

4848
/** Produces a new array with element type `T` and length `len` */
49-
override def newArray(len: Int): Array[T]
49+
def newArray(len: Int): Array[T] =
50+
java.lang.reflect.Array.newInstance(runtimeClass, len).asInstanceOf[Array[T]]
5051

5152
/** A ClassTag[T] can serve as an extractor that matches only objects of type T.
5253
*

0 commit comments

Comments
 (0)