Skip to content

Instantly share code, notes, and snippets.

@ggPeti

ggPeti/crusher.scala

Created Dec 19, 2014
Embed
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
You can’t perform that action at this time.