title: Is it possible to specify an anonymous function's return type, in Scala?
body: <p>I know you can create an anonymous function, and have the compiler infer its return type:</p>
  
  <pre><code>val x = () =&gt; { System.currentTimeMillis }
  </code></pre>
  
  <p>Just for static typing's sake, is it possible to specify its return type as well? I think it would make things a lot clearer.</p>