Skip to content

run/vector1.scala fails to find implicit #681

Closed
@DarkDimius

Description

@DarkDimius
[info] compiling /Users/dark/workspace/dotty/tests/partest-generated/run/vector1.scala
[info] options: -pagewidth 160 -Yno-deep-subtypes -Yno-double-bindings -Ycheck:tailrec,resolveSuper,mixin,restoreScopes -d ./tests/partest-generated/run/vector1-run.obj
[info] /Users/dark/workspace/dotty/tests/partest-generated/run/vector1.scala:128: error: no implicit argument of type scala.collection.generic.CanBuildFrom[
[info]   (CC? >: ([HK$0] => scala.collection.mutable.WrappedArray[HK$0])[HK$0 = Int] <: ([HK$0] =>  <: scala.collection.TraversableOnce[HK$0]))[(T? = Int)]#Apply
[info] , (T? = Int),
[info]   (CC? >: ([HK$0] => scala.collection.mutable.WrappedArray[HK$0])[HK$0 = Int] <: ([HK$0] =>  <: scala.collection.TraversableOnce[HK$0]))[(T? = Int)]#Apply
[info] ] found for parameter bf of method shuffle in class Random
[info]     val pos = scala.util.Random.shuffle(scala.collection.mutable.WrappedArray.make[Int](Array.tabulate[Int](N)(i => i)))
[info]                                                                                                                         ^

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions