Passing Map with Non-Null keys to function that takes map with nullable keys?

Fair enough.

In this case it’s definitely being created by mapOf(), which in its current implementation seems to be a LinkedHashMap, although there’s no guarantee that can’t change in the future, so there’s still some risk there in theory.

1 Like