Skip to content

Instantly share code, notes, and snippets.

@yoshihiro503
Created December 25, 2013 06:59
Show Gist options
  • Save yoshihiro503/8120852 to your computer and use it in GitHub Desktop.
Save yoshihiro503/8120852 to your computer and use it in GitHub Desktop.
Scala 2.10.0 で型変数の実行時判定ができなくなる警告が出ないことがあるかも ref: http://qiita.com/yoshihiro503/items/2e73c4d9d6acb8a3c6b0
type LS = List[String]
def f(x : Any) = x match {
case (x : LS) => Some(x)
case _ => None
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment