Guest User

Untitled

a guest
Jul 16th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. trait HomClass { self =>
  2. type L
  3. type H>:L
  4. type C[_>:L<:H,_>:L<:H]
  5. type Dual <: HomClass {
  6. type L=self.type#L
  7. type H=self.type#H
  8. type C[A>:L<:H,B>:L<:H] = self.type#C[B,A]
  9. type Dual = self.type
  10. }
  11. }
  12. object foo extends HomClass { type L = Nothing; type H = Nothing; type C[A,B] = Int => Double }
Add Comment
Please, Sign In to add comment