title: How use class in annotation Kotlin
body: <p>I want to create an annotation that receives a Class parameter, the example in JAVA should be</p>
  
  <pre><code>@Retention(RUNTIME)
  public @interface CustomAnnotation {
  
      Class&lt;Comparable&lt;?&gt;&gt; comparator();
  }
  </code></pre>
  
  <p>I suppose that in Kotlin should be:</p>
  
  <pre><code>@Retention(AnnotationRetention.RUNTIME)
  annotation class CustomAnnotation(
  
      val comparator: Class&lt;Comparable&lt;*&gt;&gt;
  )
  </code></pre>
  
  <p>But in Kotlin get an error message <code>Invalid type of annotation member</code> so how should be the equivalent in Kotlin to accept a class as parameter? </p>