Adriaan edited on 2007-03-29 01:02:00.0
|
|
Adriaan edited on 2007-03-29 01:02:22.0
|
|
Adriaan edited on 2007-03-29 01:30:00.0
|
On further reflection, I think unapplySeq should be changed to:
def unapplySeq[A](x: Array[A]): Option[Seq[A]] = Some(x)
Then it works.
|
Adriaan edited on 2007-03-29 18:24:35.0
|
Martin, I'd close this bug (I committed the change to Array), were it not for this somewhat surprising behaviour: passing an instance of Array[A] to something that expects an Any and then does instanceOf[Array[A]] does not work, the array is passed as a Java-native array, instead of being boxed whereas the isInstanceOf is erased to instanceof BoxedArray -- maybe x.instanceOf needs to be erased differently depending on whether x is expected to be boxed?
|
Martin edited on 2007-04-17 16:28:39.0
|
reassigned to me.
|