aboutsummaryrefslogblamecommitdiff
path: root/tests/pending/pos/t6966.scala
blob: cd91221a651a0b062d68fe8f1835456935093a29 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11



                                            






                                                                                                                         





                                                                  
import Ordering.{Byte, comparatorToOrdering}
trait Format[T]
trait InputCache[T]
object CacheIvy {
    implicit def basicInputCache[I](implicit fmt: Format[I], eqv: Equiv[I]): InputCache[I] = null
    implicit def arrEquiv[T](implicit t: Equiv[T]): Equiv[Array[T]] = null
    implicit def hNilCache: InputCache[HNil] = null
    implicit def ByteArrayFormat: Format[Array[Byte]] = null
    type :+:[H, T <: HList] = HCons[H,T]
    implicit def hConsCache[H, T <: HList](implicit head: InputCache[H], tail: InputCache[T]): InputCache[H :+: T] = null
    hConsCache[Array[Byte], HNil]
}

sealed trait HList
sealed trait HNil extends HList
object HNil extends HNil
final class HCons[H, T <: HList](head : H, tail : T) extends HList