Skip to content

Instantly share code, notes, and snippets.

@Jazzatola
Created April 25, 2015 16:11
Show Gist options
  • Save Jazzatola/76ea631075b9c0dfb170 to your computer and use it in GitHub Desktop.
Save Jazzatola/76ea631075b9c0dfb170 to your computer and use it in GitHub Desktop.
How do I make this compile? I must be missing a type bound somewhere...
case class Foo[+A](p: A => Boolean) {
def contains[B >: A](b: B): Boolean = p(b)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment