summaryrefslogblamecommitdiff
path: root/test/files/pos/t7853-partial-function.scala
blob: b09254e99a583dc35a552ce68e6ad295f2df8988 (plain) (tree)
1
2
3
4
5
6
7






                                                             
object Test  {

  def testCons: Unit = {
    def x[A](a: PartialFunction[Any, A]): A = a(0)
    val eval0 = x { case list: List[Int @unchecked] => list }
  }
}