if someone can help-me in this question, i ll appr...
# android
r
if someone can help-me in this question, i ll appreciate so much, it's about generics in kotlin. https://stackoverflow.com/questions/54043115/generics-type-and-subtype-kotlin
a
It's unclear what you want to achieve with this.
It smells like an xyproblem.info You cannot have two generic types but only specify one.
Are you just after this:
Copy code
class Test<T, Z : T>(
    val varZ: Z,
    val varT: T
)
But obviously it still specifies 2 generic parameters. There's no escaping that.