Skip to content

Instantly share code, notes, and snippets.

@ConnorDoyle
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ConnorDoyle/f2ecd780ce43384406c4 to your computer and use it in GitHub Desktop.
Save ConnorDoyle/f2ecd780ce43384406c4 to your computer and use it in GitHub Desktop.
type Function1[-A,+B]
case class A(x: Int)
case class B(x: Int) extends A(x)
val alpha: A => Unit = { a => ??? }
val beta: B => Unit = { b => ??? }
def gamma(f: B => Unit) = ???
type Set[+A]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment