Skip to content

Instantly share code, notes, and snippets.

Created Dec 19, 2014
What would you like to do?
IDEA highlight bug p-o-c
object unapplier { def unapply(x: Int) = Some((x, x)) }
val tupleTaker = (_: (Int, Int)) => ()
1 match {
case unapplier(tuple) => tupleTaker(tuple)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment