wcaokaze
05/02/2018, 7:29 AMLong
is a subtype of Long?
robstoll
05/02/2018, 7:55 AMrobstoll
05/02/2018, 7:55 AMrobstoll
05/02/2018, 7:57 AMval a: List<String?>
val b: List<String>
a = b
wcaokaze
05/02/2018, 8:08 AMwcaokaze
05/02/2018, 8:09 AMrobstoll
05/02/2018, 8:42 AMwcaokaze
05/02/2018, 8:50 AMString?
can store String
, that’s allrobstoll
05/02/2018, 8:51 AMString <: String?
is not true then List<String> <: List<String?>
would not workwcaokaze
05/02/2018, 8:53 AM