Skip to content

Instantly share code, notes, and snippets.

@SethTisue
Created September 5, 2013 00:14
Show Gist options
  • Save SethTisue/6444477 to your computer and use it in GitHub Desktop.
Save SethTisue/6444477 to your computer and use it in GitHub Desktop.
Welcome to Scala version 2.10.2
scala> val x: Any = "foo"
x: Any = foo
scala> val y: String = x.asInstanceOf
java.lang.ClassCastException: java.lang.String cannot be cast to scala.runtime.Nothing$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment