Created
September 8, 2015 13:49
-
-
Save justjoheinz/045dfc1c36c762ea6387 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import shapeless._ | |
import ops._ | |
import coproduct._ | |
object coproducttest { | |
type U = Int :+: String :+: CNil | |
type V = Double :+: List[Int] :+: CNil | |
type W = Prepend[U,V]#Out | |
val i : Int = 1 | |
// could not find implicit value for parameter inj: shapeless.ops.coproduct.Inject[coproducttest.W,Int] | |
val z = Coproduct[W](i) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment