Created
April 27, 2015 22:18
-
-
Save non/2ca8da3bf9229a986faa to your computer and use it in GitHub Desktop.
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
package object foo { | |
implicit class ThrowAway(val x: Boolean) extends AnyVal { | |
def func[B]: B => String = | |
new Function1[B, String] { | |
def apply(b: B): String = "foo" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment