Join Slack
Powered by
Hi, does anyone know if this sort of generic decla...
# announcements
a
aerb
06/24/2018, 7:01 PM
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?
Open in Slack
Previous
Next