aboutsummaryrefslogblamecommitdiff
path: root/tests/neg/i1255.scala
blob: 3bb7e8f25d35e969dad79acd7b2ea992ffbc89eb (plain) (tree)
1
2
3
4
5
6





                                         
object Test {
  def foo(x: Option[Int]) = x match {
    case Some(_: Double) => true // error
    case None => true
  }
}