`Long` is a subtype of `Long?`
# announcements
w
Long
is a subtype of
Long?
r
seems like it
but I guess not really
you can at least do things like
Copy code
val a: List<String?>
    val b: List<String>
    a = b
w
List is covariance. List<String> seems like a subtype of List<String?>
r
exactly which proves that String is a subtype of String? đŸ˜‰
w
String?
can store
String
, that’s all
r
must be more if
String <: String?
is not true then
List<String> <: List<String?>
would not work
w
đŸ˜‰