title: Kotlin define interface for enum class values method
body: <p>if I define an enum class, let's say:</p>
  
  <pre><code>enum class MyEnum { }
  </code></pre>
  
  <p>I can do the following as enum class all have a <code>values</code> method: </p>
  
  <pre><code>val values = MyEnum.values()
  </code></pre>
  
  <p>Now I want my enum to implement an interface and have access to the values() method:</p>
  
  <pre><code>enum class MyEnum : EnumInterface { }
  
  interface EnumInterface {
      fun values() : Array&lt;T&gt;
  
      fun doStuff() {
          this.values()
      }
  
  }
  </code></pre>
  
  <p>This doesn't compile and I'm sure how to type the values method. Is it possible to define such interface? Thanks!</p>