Open
Description
The following works:
scala> val f : Int => Int = (x:Int) => x * x
f: (Int) => Int = <function>
scala> f match { case (g : Function1[_,_]) => g(2) }
res0: Any = 4
But the following doesn't:
scala> val f : Int => Int = (x:Int) => x * x
f: (Int) => Int = <function>
scala> f match { case (g : (_ => _)) => g(2) }
<console>:1: error: ')' expected but '=>' found.
f match { case (g : (_ => _)) => g(2) }
^
<console>:1: error: ')' expected but '}' found.
f match { case (g : (_ => _)) => g(2) }