- 
      
- 
        Save milessabin/31d1919b22627fec103d 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 | |
| val p = Prepend[U,V] | |
| type W = p.Out | |
| val i : Int = 1 | |
| // compiles ... | |
| val z = Coproduct[W](i) | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment