このコードは2.9.1だと警告が出るけど、2.10.0だと出ない。
Sample.scala
type LS = List[String]
def f(x : Any) = x match {
case (x : LS) => Some(x)
case _ => None
}
More than 5 years have passed since last update.
このコードは2.9.1だと警告が出るけど、2.10.0だと出ない。
type LS = List[String]
def f(x : Any) = x match {
case (x : LS) => Some(x)
case _ => None
}
Register as a new user and use Qiita more conveniently