We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e980f0c commit 0e11d68Copy full SHA for 0e11d68
library/src/scala/Array.scala
@@ -61,8 +61,7 @@ object Array extends FallbackArrayBuilding {
61
val emptyShortArray = new Array[Short](0)
62
val emptyObjectArray = new Array[Object](0)
63
64
- implicit def canBuildFrom[T](implicit t: ClassTag[T]): CanBuildFrom[Array[_], T, Array[T]] = {
65
- val tag = implicitly[ClassTag[T]]
+ implicit def canBuildFrom[T](implicit tag: ClassTag[T]): CanBuildFrom[Array[_], T, Array[T]] = {
66
val cls = tag.runtimeClass
67
(if (cls.isPrimitive) {
68
cls match {
0 commit comments