blob: 60a674f4d851c53db8c87c376486fa2f65372d67 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
class t8372 {
// failed with "error: tpe T1 is an unresolved spliceable type"; that was caused by
// misguided type inference of type parameters in ArrayOps.unzip
// the type inference failed because the order of implicit arguments was wrong
// the evidence that T <: (T1, T2) came as last argument so it couldn't guide the
// type inference early enough
def unzip[T1, T2](a: Array[(T1, T2)]) = a.unzip
// the same as above
def unzip3[T1, T2, T3](a: Array[(T1, T2, T3)]): (Array[T1], Array[T2], Array[T3]) = a.unzip3
}
|