https://kotlinlang.org logo
r

robstoll

10/13/2017, 9:35 AM
is there a way to define that a type parameter shall not be nullable in certain cases? Somehow the opposite of adding
?
to a type parameter. Something like
Copy code
class A<T>{ fun <T2> foo() where T2 : T, T2 not nullable }