https://kotlinlang.org logo
#announcements
Title
# announcements
m

Marc Knaup

10/28/2017, 3:09 PM
Is there any difference between
<in Any>
and
<Any>
? Nothing can be higher in hierarchy than
Any
anyway.
i

ilya.gorbunov

10/28/2017, 9:57 PM
it can be `Any?`: it is a supertype of
Any
m

Marc Knaup

10/29/2017, 10:38 AM
Oh right, forgot about nullables here. So what about
<in Any?>
vs
Any?
?
i

ilya.gorbunov

10/29/2017, 10:46 AM
These seem to be equivalent in terms of what you can do with them.
m

Marc Knaup

10/29/2017, 11:01 AM
okay, thanks!
3 Views