```override fun <T : ViewModel?> create( ...
# getting-started
d
Copy code
override fun <T : ViewModel?> create(
    key: String,
    modelClass: Class<T>,
    handle: SavedStateHandle
): T & Any {
    TODO("Not yet implemented")
}
I've never seen that kind of type
T & Any
until now. What does the
&
mean in this generic type? Does it have just common
&
meaning? or a bit operator?
v
T
and
Any
, so definitely not null
it's a special case of intersection types
d
Thank you guys! :)
s
not only a special case of intersection types, but also the only case (
& Any
) implemented so far.