aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/t873.scala
blob: b8c50afd35579b301a906cc628b551a3888c07fb (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                            
abstract class Foo {

  val x:Option[List[String]]
  val y:List[Int]

  val z = (0:Any) match {
    case 1 => x
    case 2 => y
  }
}