aboutsummaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2017-02-01 16:43:00 +1100
committerMartin Odersky <odersky@gmail.com>2017-02-01 16:43:00 +1100
commitb11e6d678a92187e5e9f821ba1116cec2cce0f8c (patch)
tree81efac5e249e680d23c777752c98e3e649508b5d /library
parent2ce93287d809ed0012546c8466712a40e5a9c2e5 (diff)
downloaddotty-b11e6d678a92187e5e9f821ba1116cec2cce0f8c.tar.gz
dotty-b11e6d678a92187e5e9f821ba1116cec2cce0f8c.tar.bz2
dotty-b11e6d678a92187e5e9f821ba1116cec2cce0f8c.zip
Handle Array classtags in the same way as others
The previous implicit definition of arrayTag in DottyPredef priorities arrayTag over all other classtag searches, which led to surprising results in `i1907a.scala`.
Diffstat (limited to 'library')
-rw-r--r--library/src/dotty/DottyPredef.scala3
1 files changed, 0 insertions, 3 deletions
diff --git a/library/src/dotty/DottyPredef.scala b/library/src/dotty/DottyPredef.scala
index cd90c4882..c7cf2a906 100644
--- a/library/src/dotty/DottyPredef.scala
+++ b/library/src/dotty/DottyPredef.scala
@@ -9,9 +9,6 @@ import scala.collection.Seq
object DottyPredef {
implicit def typeTag[T]: TypeTag[T] = ???
- implicit def arrayTag[T](implicit ctag: ClassTag[T]): ClassTag[Array[T]] =
- ctag.wrap
-
/** A fall-back implicit to compare values of any types.
* The compiler will restrict implicit instances of `eqAny`. An instance
* `eqAny[T, U]` is _valid_ if `T <: U` or `U <: T` or both `T` and `U` are