Why can't I use the copy method of the case class with duplicate parameters?
For example, why is the last line of this code giving me an error?
case class A(i: Int)
case class B(i: Int*)
val a = A(1).copy(i = 2)
val b1 = B(i = Seq(4, 5): _*)
val b2 = B(2, 3).copy(i = Seq(4, 5): _*)
value copy is not a member of B
source
share