Skip to content

Instantly share code, notes, and snippets.

@ggPeti
Created December 19, 2014 12:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ggPeti/0898f361c30f9c60eb4a to your computer and use it in GitHub Desktop.
Save ggPeti/0898f361c30f9c60eb4a to your computer and use it in GitHub Desktop.
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