title: A value of type 'x' can't be assigned to a variable of type 'T'
body: <p>Given the following code I don't understand why the error <code>A value of type 'Foo' can't be assigned to a variable of type 'T'.</code> is thrown.</p>
  <pre><code>void main () {
    Bar bar = Bar();
  }
  
  class Foo {
    //
  }
  
  class Bar&lt;T extends Foo&gt; {
    T foo = Foo();
  }
  </code></pre>