codyoss
06/22/2018, 4:01 PMclass Foo<T>(val bar: T)
and class Foo<T: Any>(val bar: T)
. I don’t understand what the : Any
gets you…nwh
06/22/2018, 4:14 PMT
is a subtype of Any
. That's useful because it means you can't use a nullable type (like Int?
, for example)nwh
06/22/2018, 4:20 PMAny
you know you will never have a null entrymalone
06/22/2018, 4:22 PMT
is Any?
codyoss
06/22/2018, 5:48 PM