From b11e6d678a92187e5e9f821ba1116cec2cce0f8c Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Wed, 1 Feb 2017 16:43:00 +1100 Subject: 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`. --- library/src/dotty/DottyPredef.scala | 3 --- 1 file changed, 3 deletions(-) (limited to 'library') 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 -- cgit v1.2.3