blob: 8d8ee3afb0f17afa1b34070d773606e527608558 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
package cask.internal
import scala.annotation.implicitNotFound
@implicitNotFound("Cannot return ${T} as a ${V}")
class Conversion[T, V](val f: T => V)
object Conversion{
implicit def create[T, V](implicit f: T => V) = new Conversion(f)
}
|