Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SI-6966 Fix regression in implicit resolution
Reverts this line: 9c09c17#L50L671. That value was apparantly discarded intentionally.
- Loading branch information
Showing
2 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
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 |