Michael Böiers
05/28/2021, 12:44 PMval list = listOf(1, 2)
if (list is MutableList) list.add(3)
https://pl.kotl.in/_jfhJy6is
Why is that? I mean, I get that the list is immutable, but why then can it be cast to MutableList?hho
05/28/2021, 12:55 PMMichael Böiers
05/28/2021, 12:57 PM