Created
December 25, 2013 06:59
-
-
Save yoshihiro503/8120852 to your computer and use it in GitHub Desktop.
Scala 2.10.0 で型変数の実行時判定ができなくなる警告が出ないことがあるかも ref: http://qiita.com/yoshihiro503/items/2e73c4d9d6acb8a3c6b0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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