Join Slack
Communities
Powered by
`fun <T : Any?> foo(): T` is possible. Sinc...
# announcements
d
dalexander
05/16/2018, 7:38 PM
fun <T : Any?> foo(): T
is possible. Since you specified that T is nullable then that's happening somewhere. You could also write
fun <T : Any> foo(): T
which doesn't allow for a nullable T
Open in Slack
Previous
Next