scala 2.9.2 This compiles fine
object AppBuilder extends App {
def app( blockw: Int => String ) : List[String] = List( blockw(6) )
def app( block: => String ) : List[String] = app( _ => block )
}
But in REPL, the same methods/functions ( not sure about the distinction here) as above, when not enclosed in a class, I get the following errors
scala> def app( blockw: Int => String ) : List[String] = List( blockw(6) )
app: (blockw: Int => String)List[String]
scala> def app( block: => String ) : List[String] = app( _ => block )
<console>:8: error: missing parameter type
def app( block: => String ) : List[String] = app( _ => block )
^