CLOVIS
09/09/2020, 9:50 AM<T: out Comparable>
to get the first one, but I don't see how to have two constraints.Jordan Stewart
09/09/2020, 9:57 AMwhere
(https://kotlinlang.org/docs/reference/generics.html#upper-bounds) e.g. fun <T> test(t: T) where T : Comparable<T>, T : Serializable
CLOVIS
09/09/2020, 3:51 PM