Join Slack
Hello all what is the difference between <Any> and <*> for generics
# android
v
Viral
03/30/2018, 5:26 AM
Hello all what is the difference between <Any> and <*> for generics
g
gildor
03/30/2018, 11:43 AM
They have different semantics, but practically <*> will work as <Any?>
s
Sergey Mischenko
04/10/2018, 3:57 PM
Not quite. <*> can be Any?, Unit and Nothing. And <Any> only Any, not Any? or Unit
2
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by