diesieben07
02/14/2018, 10:57 PMexpect class ExtensionType<E : Any>
fun <E : Any> doSomething(type: ExtensionType<E>): String = "$type" // example!
In my JVM module I am now doing this:
actual typealias ExtensionType<E> = Class<E>
I would now expect to be able to call doSomething(SomeClass::class.java)
in the JVM module, since there ExtensionType = Class
. However IntelliJ complains about a type mismatch between the two.
Why is that? And how can I achieve something similar?