I try to turn a nullable generic into a non-nullab...
# announcements
r
I try to turn a nullable generic into a non-nullable one in a class which has a nullabel generic: class A<T: Any?>{ fun <T2> nonNull(foo: T2) where T2: T, T2: Any = foo!! } Unfortunately it is not allowed to have more than one upper bound if one of them is a type parameter. Any suggestions?