title: Generics in Kotlin with extends
body: <p>I trying to porting java project to kotlin and have some problems with it. I have some MVP structure in java using generics</p>
  
  <pre><code>interface View&lt;P extends Presenter&gt; {}
  interface Presenter&lt;V extends View&gt; {}
  interface BaseView&lt;P extends Presenter&gt; extends View&lt;P&gt; {}
  
  class BaseActivity&lt;P extends Presenter&gt; extends AppCompatActivity implements BaseView&lt;P&gt; {}
  </code></pre>
  
  <p>At first two classes I have error from IDE</p>
  
  <pre><code>interface Presenter&lt;V : View&lt;*&gt;&gt; {}
  interface View&lt;P : Presenter&lt;*&gt;&gt; {}
  </code></pre>
  
  <p>my error is </p>
  
  <pre><code>*this type parameter violates the finite bound restriction*
  </code></pre>
  
  <p>No any problem with Java code</p>