summaryrefslogtreecommitdiff
path: root/src/library/scala/reflect/ArrayTag.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/scala/reflect/ArrayTag.scala')
-rw-r--r--src/library/scala/reflect/ArrayTag.scala25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/library/scala/reflect/ArrayTag.scala b/src/library/scala/reflect/ArrayTag.scala
deleted file mode 100644
index 0dc25c8dc2..0000000000
--- a/src/library/scala/reflect/ArrayTag.scala
+++ /dev/null
@@ -1,25 +0,0 @@
-package scala.reflect
-
-/** An `ArrayTag[T]` is a descriptor that is requested by the compiler every time
- * when an array is instantiated, but the element type is unknown at compile time.
- *
- * Implicit in the contract of `ArrayTag[T]` is the fact that `T`
- * cannot contain unresolved references to type parameters or abstract types.
- *
- * Scala library provides a standard implementation of this trait,
- * `ClassTag[T]` that explicitly carries the runtime class of type T
- * and uses reflection to instantiate arrays.
- *
- * However other platforms (e.g. a Scala -> JS crosscompiler) may reimplement this trait as they see fit
- * and then expose the implementation via an implicit macro.
- *
- * @see [[scala.reflect.base.TypeTags]]
- */
-@annotation.implicitNotFound(msg = "No ArrayTag available for ${T}")
-trait ArrayTag[T] {
- /** Produces an `ArrayTag` that knows how to build `Array[Array[T]]` */
- def wrap: ArrayTag[Array[T]]
-
- /** Produces a new array with element type `T` and length `len` */
- def newArray(len: Int): Array[T]
-} \ No newline at end of file