|
|
|
|
|
by bspammer
207 days ago
|
|
For the first one, the compiler should not allow the mutable list to be assigned to a more broadly typed mutable list. This is a compile error in kotlin, for example val items: MutableList<Int> = mutableListOf(3)
val brokenItems: MutableList<Any> = items
|
|