Created
April 25, 2015 16:11
-
-
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...
This file contains 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
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