nkiesel
04/24/2018, 7:40 PMval owners: MutableSet<MyObject> = mutableSetOf()
because MutableSet::class
is class kotlin.collections.Set
and not class kotlin.collections.MutableSet
. Any idea why that is the case (or even better what I can do to fix this)?karelpeeters
04/24/2018, 7:43 PMMutableSet
and co don't exist at runtime.nkiesel
04/24/2018, 7:47 PMSet
and MutableSet
are interfaces. I "cheated" for now by using a literal Stringkarelpeeters
04/24/2018, 7:47 PMnkiesel
04/24/2018, 7:49 PM