The problem with the method taking a `Class<T&g...
# language-proposals
d
The problem with the method taking a
Class<T>
, is that in case of a
Class<Map<String, Double>>
at runtime it will be a
Class<Map erased>
, so calling it would was as good as doing
fromJson(jsonValue, javaClass<Map<*, *>>()) as Map<String, Double>
which in Kotlin now forces you to do explicitly to remove possible misunderstandings.