Question regarding <@U0926QHA6> 's immutable colle...
# announcements
j
Question regarding @apatrida 's immutable collections. Suppose we add NavigableSet.asImmutable() and SortedSet.asImmutable() (returning a NavigableSet and a SortedSet respectively). My experiments show that calling asImmutable() on a set declared as
val set = sortedSetOf("a", "b")
calls the most specific version (NavigableSet.asImmutable). Is there a way to make it call SortedSet.asImmutable() or Collection.asImmutable()? What would be the syntax?