Skip to content

Instantly share code, notes, and snippets.

@divarvel
Created October 4, 2012 09:18
Show Gist options
  • Save divarvel/3832468 to your computer and use it in GitHub Desktop.
Save divarvel/3832468 to your computer and use it in GitHub Desktop.
This is wrong.
def method(a: Any): String = a match {
case i: Int => "Int"
case s: String => "String"
case _ => "Other"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment