title: Array SAM Scala not allowed
body: <p>It seems you can not initialize an Array with a SAM syntax. When I try the following...</p>
  
  <pre><code>trait A {
    def num(): Int
  }
  
  trait B extends A
  
  trait C extends A
  
  val nums: Array[A] = Array(() =&gt; 5)
  </code></pre>
  
  <p>I get the following error...</p>
  
  <pre><code>&lt;console&gt;:12: error: type mismatch;
   found   : () =&gt; Int
   required: A
         val nums: Array[A] = Array(() =&gt; 5)
  </code></pre>
  
  <p>Is this behavior expected?</p>