I try to reuse a type from a third-party library i...
# multiplatform
r
I try to reuse a type from a third-party library in my jvm module but get the following error:
Aliased class should not have type parameters with declaration-site variance
common looks as follows:
Copy code
expect class PeekingIterator<out T> : Iterator<T> {
    fun peek(): T
}
and jvm as follows:
Copy code
actual typealias PeekingIterator<T> = ch.tutteli.kbox.PeekingIterator<T>
What can I do? Am I out of luck?