title: List of trait in Scala
body: <p>I am a bit confused about Scala traits. What is the exact meaning of </p>
  
  <pre><code>val myList = List[MyTrait]
  </code></pre>
  
  <p>where <code>MyTrait</code> is a trait.</p>
  
  <p>Does't that mean that <code>myList</code> can contain any instance of class (<code>MyClass</code>) that mixes-in <code>MyTrait</code> ?
  If so, isn't it a bit weird because <code>MyClass</code> is not a <code>MyTrait</code> (or is it ?).</p>
  
  <p>Thanks for your help.</p>