/test/files/pos/t7853-partial-function.scala
Scala | 7 lines | 6 code | 1 blank | 0 comment | 0 complexity | b04a9dec067a9fd945fa4d3d6550b91e MD5 | raw file
Possible License(s): Apache-2.0, BSD-3-Clause, MIT
- object Test {
- def testCons: Unit = {
- def x[A](a: PartialFunction[Any, A]): A = a(0)
- val eval0 = x { case list: List[Int @unchecked] => list }
- }
- }