https://kotlinlang.org logo
#android
Title
# android
r

rCorbellini

01/08/2019, 11:56 AM
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

Alan Evans

01/08/2019, 1:06 PM
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:``` class Test<T, Z : T>( val varZ: Z, val varT: T ) ``` But obviously it still specifies 2 generic parameters. There's no escaping that.