Kotlin: How to extend the enum class with an extension function : <p>I'm trying to extend enum classes of type <code>String</code> with the following function but am unable to use it at the call site like so:  </p>

<pre><code>fun &lt;T: Enum&lt;String&gt;&gt; Class&lt;T&gt;.join(skipFirst: Int = 0, skipLast: Int = 0): String {
    return this.enumConstants
        .drop(skipFirst)
        .dropLast(skipLast)
        .map { e -&gt; e.name }
        .joinToString()
}

MyStringEnum.join(1, 1);
</code></pre>

<p>What am I doing wrong here?</p>
