Hi, does anyone know if this sort of generic decla...
# announcements
a
Hi, does anyone know if this sort of generic declaration is possible in kotlin?
Copy code
interface I<T: Any?> {
    fun value(): T! // not null
}
I know the above is not valid kotlin, but is there some way to express a function/field as being explicitly the non-nullable version of a type?